Class AmqpTransaction

java.lang.Object
com.azure.core.amqp.AmqpTransaction

public class AmqpTransaction extends Object
Represents transaction in message broker. It does not do any network operation on its own. It contains meta data about transaction such as transaction id.
  • Constructor Details

    • AmqpTransaction

      public AmqpTransaction(ByteBuffer transactionId)
      Creates AmqpTransaction given transactionId.
      Parameters:
      transactionId - The id for this transaction.
      Throws:
      NullPointerException - if transactionId is null.
  • Method Details

    • getTransactionId

      public ByteBuffer getTransactionId()
      Gets the id for this transaction.
      Returns:
      The id for this transaction.
    • toString

      public String toString()
      String representation of the transaction id.
      Overrides:
      toString in class Object
      Returns:
      string representation of the transaction id.