Package com.azure.core.amqp
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 Summary
Constructors Constructor Description AmqpTransaction(ByteBuffer transactionId)
CreatesAmqpTransaction
giventransactionId
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBuffer
getTransactionId()
Gets the id for this transaction.String
toString()
String representation of the transaction id.
-
-
-
Constructor Detail
-
AmqpTransaction
public AmqpTransaction(ByteBuffer transactionId)
CreatesAmqpTransaction
giventransactionId
.- Parameters:
transactionId
- The id for this transaction.- Throws:
NullPointerException
- iftransactionId
is null.
-
-
Method Detail
-
getTransactionId
public ByteBuffer getTransactionId()
Gets the id for this transaction.- Returns:
- The id for this transaction.
-
-