接口 Transaction
-
-
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static classTransaction.State
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 java.util.concurrent.CompletableFuture<java.lang.Void>abort()Abort the transaction.java.util.concurrent.CompletableFuture<java.lang.Void>commit()Commit the transaction.Transaction.StategetState()Get transaction state.TxnIDgetTxnID()Get TxnID of the transaction.
-
-
-
方法详细资料
-
commit
java.util.concurrent.CompletableFuture<java.lang.Void> commit()
Commit the transaction.- 返回:
- the future represents the commit result.
-
abort
java.util.concurrent.CompletableFuture<java.lang.Void> abort()
Abort the transaction.- 返回:
- the future represents the abort result.
-
getState
Transaction.State getState()
Get transaction state.- 返回:
Transaction.Statethe state of the transaction.
-
-