public final class AbandonOptions extends Object
| Constructor and Description |
|---|
AbandonOptions() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getPropertiesToModify()
Gets the message properties to modify while abandoning the message.
|
ServiceBusTransactionContext |
getTransactionContext()
Gets the transaction associated with the settlement operation.
|
AbandonOptions |
setPropertiesToModify(Map<String,Object> propertiesToModify)
Sets the message properties to modify while abandoning message.
|
AbandonOptions |
setTransactionContext(ServiceBusTransactionContext transactionContext)
Sets the
ServiceBusTransactionContext to the options. |
public Map<String,Object> getPropertiesToModify()
public AbandonOptions setPropertiesToModify(Map<String,Object> propertiesToModify)
propertiesToModify - Message properties to modify.AbandonOptions object.public AbandonOptions setTransactionContext(ServiceBusTransactionContext transactionContext)
ServiceBusTransactionContext to the options.transactionContext - The ServiceBusTransactionContext that will be used to abandon a message.AbandonOptions object.ServiceBusSenderClient.createTransaction(),
ServiceBusSenderAsyncClient.createTransaction(),
ServiceBusReceiverClient.createTransaction(),
ServiceBusReceiverAsyncClient.createTransaction()public ServiceBusTransactionContext getTransactionContext()
null if there is none.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.