public interface TransactionParticipant
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
commit()
Attempts to execute the commit phase for previously prepared transaction.
|
default boolean |
hasPendingUpdates()
Returns if this participant has updates that need to be committed.
|
CompletableFuture<Boolean> |
prepare()
Executes the prepare phase.
|
CompletableFuture<Boolean> |
prepareAndCommit()
Executes the prepare and commit steps in a single go.
|
CompletableFuture<Void> |
rollback()
Attempts to execute the rollback phase for previously prepared transaction.
|
int |
totalUpdates()
Returns the number of updates that need to committed for this participant.
|
default boolean hasPendingUpdates()
true if yes; false otherwiseint totalUpdates()
CompletableFuture<Boolean> prepareAndCommit()
true is successful i.e updates are committed; false otherwiseCompletableFuture<Boolean> prepare()
true is successful; false otherwiseCompletableFuture<Void> commit()
CompletableFuture<Void> rollback()
Copyright © 2016. All rights reserved.