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