| Package | Description |
|---|---|
| io.atomix.core.transaction |
Interfaces for managing distributed primitive transactions.
|
| Modifier and Type | Method and Description |
|---|---|
static TransactionId |
TransactionId.from(String id)
Creates a new transaction identifier.
|
TransactionId |
TransactionLog.transactionId()
Returns the transaction identifier.
|
TransactionId |
Transaction.transactionId()
Returns the transaction identifier.
|
TransactionId |
AsyncTransaction.transactionId()
Returns the transaction identifier.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<TransactionId> |
TransactionService.begin()
Returns a new transaction ID.
|
Set<TransactionId> |
TransactionService.getActiveTransactions()
Returns the set of active transactions.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
TransactionService.aborting(TransactionId transactionId)
Marks the given transaction as rolling back.
|
CompletableFuture<Void> |
Transactional.commit(TransactionId transactionId)
Commits a previously prepared transaction and unlocks the object.
|
CompletableFuture<Void> |
TransactionService.committing(TransactionId transactionId)
Marks the given transaction as committing.
|
CompletableFuture<Void> |
TransactionService.complete(TransactionId transactionId)
Marks the given transaction as complete.
|
TransactionState |
TransactionService.getTransactionState(TransactionId transactionId)
Returns a transaction state by ID.
|
CompletableFuture<Void> |
TransactionService.preparing(TransactionId transactionId,
Set<ParticipantInfo> participants)
Marks the given transaction as preparing.
|
CompletableFuture<Void> |
Transactional.rollback(TransactionId transactionId)
Aborts a previously prepared transaction and unlocks the object.
|
| Constructor and Description |
|---|
TransactionLog(TransactionId transactionId,
long version,
List<T> records) |
Copyright © 2013–2018. All rights reserved.