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 if this participant has updates that need to be committed.
|
CompletableFuture<Boolean> |
prepare()
Executes the prepare phase.
|
CompletableFuture<Void> |
rollback()
Attempts to execute the rollback phase for previously prepared transaction.
|
boolean hasPendingUpdates()
true if yes; false otherwiseCompletableFuture<Boolean> prepare()
true is successful; false otherwiseCompletableFuture<Void> commit()
CompletableFuture<Void> rollback()
Copyright © 2016. All rights reserved.