public interface TransactionParticipant
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
commit()
Attempts to execute the commit phase for previously prepared transaction.
|
boolean |
hasPendingUpdates()
Returns a boolean indicating whether the participant has pending updates.
|
CompletableFuture<Boolean> |
prepare()
Executes the prepare phase.
|
CompletableFuture<Boolean> |
prepareAndCommit()
Executes the prepare and commit phases atomically.
|
CompletableFuture<Void> |
rollback()
Attempts to execute the rollback phase for previously prepared transaction.
|
boolean hasPendingUpdates()
CompletableFuture<Boolean> prepare()
true is successful; false otherwiseCompletableFuture<Void> commit()
CompletableFuture<Boolean> prepareAndCommit()
true is successful; false otherwiseCompletableFuture<Void> rollback()