Class AbandonOptions
java.lang.Object
com.azure.messaging.servicebus.models.AbandonOptions
Options to specify while abandoning message.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the message properties to modify while abandoning the message.Gets the transaction associated with the settlement operation.setPropertiesToModify
(Map<String, Object> propertiesToModify) Sets the message properties to modify while abandoning message.setTransactionContext
(ServiceBusTransactionContext transactionContext) Sets theServiceBusTransactionContext
to the options.
-
Constructor Details
-
AbandonOptions
public AbandonOptions()
-
-
Method Details
-
getPropertiesToModify
Gets the message properties to modify while abandoning the message.- Returns:
- The message properties to modify while abandoning the message.
-
setPropertiesToModify
Sets the message properties to modify while abandoning message.- Parameters:
propertiesToModify
- Message properties to modify.- Returns:
- The updated
AbandonOptions
object.
-
setTransactionContext
Sets theServiceBusTransactionContext
to the options.- Parameters:
transactionContext
- TheServiceBusTransactionContext
that will be used to abandon a message.- Returns:
- The updated
AbandonOptions
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.
-