接口 Transaction
The class represents a transaction within Pulsar.
-
方法详细资料
-
commit
CompletableFuture<Void> commit()Commit the transaction.- 返回:
- the future represents the commit result.
-
abort
CompletableFuture<Void> abort()Abort the transaction.- 返回:
- the future represents the abort result.
-
getTxnID
TxnID getTxnID()Get TxnID of the transaction.- 返回:
TxnIDthe txnID.
-
getState
Transaction.State getState()Get transaction state.- 返回:
Transaction.Statethe state of the transaction.
-