TransactionContext 类

定义

Represents an active servicebus transaction. A transaction is initiated by calling startTransactionAsync(). A transaction can result in commit or rollback. To commit, call endTransactionAsync(TransactionContext transaction, boolean commit) with To rollback, call endTransactionAsync(TransactionContext transaction, boolean commit) with

public class TransactionContext
继承
java.lang.Object
TransactionContext

构造函数

TransactionContext(ByteBuffer txnId, MessagingFactory messagingFactory)

字段

NULL_TXN

方法

commit()

Commits the transaction

commitAsync()

Asynchronously commits the transaction

getTransactionId()

Represents the service-side transactionID

notifyTransactionCompletion(boolean commit)

This is not to be called by the user.

rollback()

Rollback the transaction

rollbackAsync()

Asynchronously rollback the transaction.

toString()

适用于