CompleteOptions Class

  • java.lang.Object
    • com.azure.messaging.servicebus.models.SettlementOptions
      • com.azure.messaging.servicebus.models.CompleteOptions

public final class CompleteOptions
extends com.azure.messaging.servicebus.models.SettlementOptions

Options to specify when completing a ServiceBusReceivedMessage received via PEEK_LOCK.

Constructor Summary

Constructor Description
CompleteOptions()

Creates a new instance of options to specify when completing messages.

Method Summary

Modifier and Type Method and Description
CompleteOptions setTransactionContext(ServiceBusTransactionContext transactionContext)

Sets the ServiceBusTransactionContext to the options.

Methods inherited from com.azure.messaging.servicebus.models.SettlementOptions

com.azure.messaging.servicebus.models.SettlementOptions.getTransactionContext com.azure.messaging.servicebus.models.SettlementOptions.setTransactionContext

Methods inherited from java.lang.Object

Constructor Details

CompleteOptions

public CompleteOptions()

Creates a new instance of options to specify when completing messages.

Method Details

setTransactionContext

public CompleteOptions setTransactionContext(ServiceBusTransactionContext transactionContext)

Sets the ServiceBusTransactionContext to the options.

Overrides:

CompleteOptions.setTransactionContext(ServiceBusTransactionContext transactionContext)

Parameters:

transactionContext - The ServiceBusTransactionContext that will be used to complete a message.

Returns:

The updated CompleteOptions object.

Applies to