public class ForeignShardThreePhaseCommitCohort extends Object implements DOMStoreThreePhaseCommitCohort
Constructor and Description |
---|
ForeignShardThreePhaseCommitCohort(DOMDataTreeIdentifier prefix,
ForeignShardModificationContext shard) |
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 ForeignShardThreePhaseCommitCohort(DOMDataTreeIdentifier prefix, ForeignShardModificationContext shard)
public com.google.common.util.concurrent.ListenableFuture<Boolean> canCommit()
DOMStoreThreePhaseCommitCohort
canCommit
in interface DOMStoreThreePhaseCommitCohort
Future.get()
is
following:
public com.google.common.util.concurrent.ListenableFuture<Void> preCommit()
DOMStoreThreePhaseCommitCohort
This message is valid only and only if the participant responded
on DOMStoreThreePhaseCommitCohort.canCommit()
call with positive response.
preCommit
in interface DOMStoreThreePhaseCommitCohort
public com.google.common.util.concurrent.ListenableFuture<Void> abort()
DOMStoreThreePhaseCommitCohort
abort
in interface DOMStoreThreePhaseCommitCohort
public com.google.common.util.concurrent.ListenableFuture<Void> commit()
DOMStoreThreePhaseCommitCohort
commit
in interface DOMStoreThreePhaseCommitCohort
Copyright © 2019 OpenDaylight. All rights reserved.