
public interface DOMStoreThreePhaseCommitCohort
DOMStore and exposed for each DOMStoreWriteTransaction
upon its transition to Ready state. The frontend (DOMStore user) uses this interface to drive the
commit procedure across potentially multiple DOMStores using the Three-Phase-Commit (3PC) Protocol,
as described in https://en.wikipedia.org/wiki/Three-phase_commit.| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<Void> |
abort()
Initiates a abort phase of associated transaction on data store.
|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
canCommit()
Sends transaction associated with this three phase commit instance to the
participant, participant votes on the transaction, if the transaction
should be committed or aborted.
|
com.google.common.util.concurrent.ListenableFuture<Void> |
commit()
Initiates a commit phase on of associated transaction on data store.
|
com.google.common.util.concurrent.ListenableFuture<Void> |
preCommit()
Initiates a pre-commit phase of associated transaction on datastore.
|
com.google.common.util.concurrent.ListenableFuture<Boolean> canCommit()
Future.get() is following:
com.google.common.util.concurrent.ListenableFuture<Void> preCommit()
canCommit() call with positive response.com.google.common.util.concurrent.ListenableFuture<Void> abort()
com.google.common.util.concurrent.ListenableFuture<Void> commit()
Copyright © 2014. All Rights Reserved.