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.Copyright © 2021 Microsoft Corporation. All rights reserved.