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 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()
This message is valid only and only if the participant responded
on canCommit()
call with positive response.
com.google.common.util.concurrent.ListenableFuture<Void> abort()
com.google.common.util.concurrent.ListenableFuture<Void> commit()
Copyright © 2019 OpenDaylight. All rights reserved.