Class DeferOptions
java.lang.Object
com.azure.messaging.servicebus.models.DeferOptions
Options to specify while deferring message.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the message properties to modify while deferring the message.Gets the transaction associated with the settlement operation.setPropertiesToModify
(Map<String, Object> propertiesToModify) Sets the message properties to modify while deferring the message.setTransactionContext
(ServiceBusTransactionContext transactionContext) Sets theServiceBusTransactionContext
to the options.
-
Constructor Details
-
DeferOptions
public DeferOptions()
-
-
Method Details
-
setPropertiesToModify
Sets the message properties to modify while deferring the message.- Parameters:
propertiesToModify
- Message properties to modify.- Returns:
- The updated
DeferOptions
object.
-
getPropertiesToModify
Gets the message properties to modify while deferring the message.- Returns:
- The message properties to modify while deferring the message.
-
setTransactionContext
Sets theServiceBusTransactionContext
to the options.- Parameters:
transactionContext
- TheServiceBusTransactionContext
that will be used to defer a message.- Returns:
- The updated
DeferOptions
object. - See Also:
-
getTransactionContext
Gets the transaction associated with the settlement operation.- Returns:
- The transaction context associated with the settlement operation.
null
if there is none.
-