Interface Transaction
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTransaction.State
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
commit
java.util.concurrent.CompletableFuture<java.lang.Void> commit()
Commit the transaction.- Returns:
- the future represents the commit result.
-
abort
java.util.concurrent.CompletableFuture<java.lang.Void> abort()
Abort the transaction.- Returns:
- the future represents the abort result.
-
getState
Transaction.State getState()
Get transaction state.- Returns:
Transaction.Statethe state of the transaction.
-
-