public interface Transactional<T>
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
commit(TransactionId transactionId)
Commits a previously prepared transaction and unlocks the object.
|
CompletableFuture<Boolean> |
prepare(TransactionLog<T> transactionLog)
Prepares a transaction for commitment.
|
CompletableFuture<Void> |
rollback(TransactionId transactionId)
Aborts a previously prepared transaction and unlocks the object.
|
CompletableFuture<Boolean> prepare(TransactionLog<T> transactionLog)
transactionLog - transaction logtrue if prepare is successful and transaction is ready to be committed
false otherwiseCompletableFuture<Void> commit(TransactionId transactionId)
transactionId - transaction identifierCompletableFuture<Void> rollback(TransactionId transactionId)
transactionId - transaction identifierCopyright © 2013–2018. All rights reserved.