public final class DeferOptions extends Object
| Constructor and Description |
|---|
DeferOptions() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getPropertiesToModify()
Gets the message properties to modify while deferring the message.
|
ServiceBusTransactionContext |
getTransactionContext()
Gets the transaction associated with the settlement operation.
|
DeferOptions |
setPropertiesToModify(Map<String,Object> propertiesToModify)
Sets the message properties to modify while deferring the message.
|
DeferOptions |
setTransactionContext(ServiceBusTransactionContext transactionContext)
Sets the
ServiceBusTransactionContext to the options. |
public DeferOptions setPropertiesToModify(Map<String,Object> propertiesToModify)
propertiesToModify - Message properties to modify.DeferOptions object.public Map<String,Object> getPropertiesToModify()
public DeferOptions setTransactionContext(ServiceBusTransactionContext transactionContext)
ServiceBusTransactionContext to the options.transactionContext - The ServiceBusTransactionContext that will be used to defer a message.DeferOptions 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.