Class TransactionalDeliveryOutcome

java.lang.Object
com.azure.core.amqp.models.DeliveryOutcome
com.azure.core.amqp.models.TransactionalDeliveryOutcome

public final class TransactionalDeliveryOutcome extends DeliveryOutcome
A transaction delivery outcome.
See Also:
  • Constructor Details

    • TransactionalDeliveryOutcome

      public TransactionalDeliveryOutcome(AmqpTransaction transaction)
      Creates an outcome with the given transaction.
      Parameters:
      transaction - The transaction.
      Throws:
      NullPointerException - if transaction is null.
  • Method Details

    • getTransactionId

      public ByteBuffer getTransactionId()
      Gets the transaction id associated with this delivery outcome.
      Returns:
      The transaction id.
    • getOutcome

      public DeliveryOutcome getOutcome()
      Gets the delivery outcome associated with this transaction.
      Returns:
      the delivery outcome associated with this transaction, null if there is no outcome.
    • setOutcome

      public TransactionalDeliveryOutcome setOutcome(DeliveryOutcome outcome)
      Sets the outcome associated with this delivery state.
      Parameters:
      outcome - Outcome associated with this transaction delivery.
      Returns:
      The updated TransactionalDeliveryOutcome object.
      Throws:
      IllegalArgumentException - if outcome is an instance of TransactionalDeliveryOutcome. Cannot have nested transaction outcomes.