public final class TransactionalDeliveryOutcome extends DeliveryOutcome
| Constructor and Description |
|---|
TransactionalDeliveryOutcome(AmqpTransaction transaction)
Creates an outcome with the given transaction.
|
| Modifier and Type | Method and Description |
|---|---|
DeliveryOutcome |
getOutcome()
Gets the delivery outcome associated with this transaction.
|
ByteBuffer |
getTransactionId()
Gets the transaction id associated with this delivery outcome.
|
TransactionalDeliveryOutcome |
setOutcome(DeliveryOutcome outcome)
Sets the outcome associated with this delivery state.
|
getDeliveryStatepublic TransactionalDeliveryOutcome(AmqpTransaction transaction)
transaction - The transaction.NullPointerException - if transaction is null.public ByteBuffer getTransactionId()
public DeliveryOutcome getOutcome()
null if there is no outcome.public TransactionalDeliveryOutcome setOutcome(DeliveryOutcome outcome)
outcome - Outcome associated with this transaction delivery.TransactionalDeliveryOutcome object.IllegalArgumentException - if outcome is an instance of TransactionalDeliveryOutcome.
Cannot have nested transaction outcomes.Copyright © 2021 Microsoft Corporation. All rights reserved.