Class CompleteOptions
java.lang.Object
com.azure.messaging.servicebus.models.CompleteOptions
Options to specify when completing a
message received via
ServiceBusReceiveMode.PEEK_LOCK.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of options to specify when completing messages. -
Method Summary
Modifier and TypeMethodDescriptionGets the transaction associated with the settlement operation.setTransactionContext(ServiceBusTransactionContext transactionContext) Sets theServiceBusTransactionContextto the options.
-
Constructor Details
-
CompleteOptions
public CompleteOptions()Creates a new instance of options to specify when completing messages.
-
-
Method Details
-
setTransactionContext
Sets theServiceBusTransactionContextto the options.- Parameters:
transactionContext- TheServiceBusTransactionContextthat will be used to complete a message.- Returns:
- The updated
CompleteOptionsobject. - See Also:
-
getTransactionContext
Gets the transaction associated with the settlement operation.- Returns:
- The transaction context associated with the settlement operation.
nullif there is none.
-