public class ThreePhaseCommitCohortProxy extends AbstractThreePhaseCommitCohort<akka.actor.ActorSelection>
IMMEDIATE_BOOLEAN_SUCCESS, IMMEDIATE_VOID_SUCCESS
Constructor and Description |
---|
ThreePhaseCommitCohortProxy(ActorContext actorContext,
List<org.opendaylight.controller.cluster.datastore.ThreePhaseCommitCohortProxy.CohortInfo> cohorts,
TransactionIdentifier transactionId) |
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.
|
public ThreePhaseCommitCohortProxy(ActorContext actorContext, List<org.opendaylight.controller.cluster.datastore.ThreePhaseCommitCohortProxy.CohortInfo> cohorts, TransactionIdentifier transactionId)
public com.google.common.util.concurrent.ListenableFuture<Boolean> canCommit()
DOMStoreThreePhaseCommitCohort
Future.get()
is following:
public com.google.common.util.concurrent.ListenableFuture<Void> preCommit()
DOMStoreThreePhaseCommitCohort
DOMStoreThreePhaseCommitCohort.canCommit()
call with positive response.public com.google.common.util.concurrent.ListenableFuture<Void> abort()
DOMStoreThreePhaseCommitCohort
public com.google.common.util.concurrent.ListenableFuture<Void> commit()
DOMStoreThreePhaseCommitCohort
Copyright © 2019 OpenDaylight. All rights reserved.