Class AbandonOptions
java.lang.Object
com.azure.messaging.servicebus.models.AbandonOptions
Options to specify when abandoning a
message received via
ServiceBusReceiveMode.PEEK_LOCK.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of options to specify when abandoning messages. -
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 theServiceBusTransactionContextto the options.
-
Constructor Details
-
AbandonOptions
public AbandonOptions()Creates a new instance of options to specify when abandoning messages.
-
-
Method Details
-
getPropertiesToModify
-
setPropertiesToModify
Sets the message properties to modify while abandoning message.- Parameters:
propertiesToModify- Message properties to modify.- Returns:
- The updated
AbandonOptionsobject.
-
setTransactionContext
Sets theServiceBusTransactionContextto the options.- Parameters:
transactionContext- TheServiceBusTransactionContextthat will be used to abandon a message.- Returns:
- The updated
AbandonOptionsobject. - See Also:
-
getTransactionContext
Gets the transaction associated with the settlement operation.- Returns:
- The transaction context associated with the settlement operation.
nullif there is none.
-