DeferOptions Class
- java.
lang. Object - com.
azure. messaging. servicebus. models. SettlementOptions - com.
azure. messaging. servicebus. models. DeferOptions
- com.
- com.
public final class DeferOptions
extends com.azure.messaging.servicebus.models.SettlementOptions
Options to specify when deferring a ServiceBusReceivedMessage received via PEEK_LOCK.
Constructor Summary
| Constructor | Description |
|---|---|
| DeferOptions() |
Creates a new instance of options to specify when deferring messages. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Map<String,Object> |
getPropertiesToModify()
Gets the message properties to modify while deferring the message. |
|
Defer |
setPropertiesToModify(Map<String,Object> propertiesToModify)
Sets the message properties to modify while deferring the message. |
|
Defer |
setTransactionContext(ServiceBusTransactionContext transactionContext)
Sets the ServiceBusTransactionContext to the options. |
Methods inherited from com.azure.messaging.servicebus.models.SettlementOptions
Methods inherited from java.lang.Object
Constructor Details
DeferOptions
public DeferOptions()
Creates a new instance of options to specify when deferring messages.
Method Details
getPropertiesToModify
public Map<String,Object> getPropertiesToModify()
Gets the message properties to modify while deferring the message.
Returns:
setPropertiesToModify
public DeferOptions setPropertiesToModify(Map<String,Object> propertiesToModify)
Sets the message properties to modify while deferring the message.
Parameters:
Returns:
setTransactionContext
public DeferOptions setTransactionContext(ServiceBusTransactionContext transactionContext)
Sets the ServiceBusTransactionContext to the options.
Overrides:
DeferOptions.setTransactionContext(ServiceBusTransactionContext transactionContext)Parameters:
Returns: