public interface TransactionService
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
aborting(TransactionId transactionId)
Marks the given transaction as rolling back.
|
CompletableFuture<TransactionId> |
begin()
Returns a new transaction ID.
|
CompletableFuture<Void> |
committing(TransactionId transactionId)
Marks the given transaction as committing.
|
CompletableFuture<Void> |
complete(TransactionId transactionId)
Marks the given transaction as complete.
|
Set<TransactionId> |
getActiveTransactions()
Returns the set of active transactions.
|
TransactionState |
getTransactionState(TransactionId transactionId)
Returns a transaction state by ID.
|
CompletableFuture<Void> |
preparing(TransactionId transactionId,
Set<ParticipantInfo> participants)
Marks the given transaction as preparing.
|
Set<TransactionId> getActiveTransactions()
TransactionState getTransactionState(TransactionId transactionId)
transactionId - the transaction IDCompletableFuture<TransactionId> begin()
CompletableFuture<Void> preparing(TransactionId transactionId, Set<ParticipantInfo> participants)
transactionId - the transaction to mark as preparingparticipants - the set of participants in the transactionCompletableFuture<Void> committing(TransactionId transactionId)
transactionId - the transaction to mark as committingCompletableFuture<Void> aborting(TransactionId transactionId)
transactionId - the transaction to mark as rolling backCompletableFuture<Void> complete(TransactionId transactionId)
transactionId - the transaction to mark as completeCopyright © 2013–2018. All rights reserved.