Class ForeignShardThreePhaseCommitCohort
- java.lang.Object
-
- org.opendaylight.mdsal.dom.spi.shard.ForeignShardThreePhaseCommitCohort
-
- All Implemented Interfaces:
DOMStoreThreePhaseCommitCohort
@Beta @Deprecated(forRemoval=true) public class ForeignShardThreePhaseCommitCohort extends Object implements DOMStoreThreePhaseCommitCohort
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Summary
Constructors Constructor Description ForeignShardThreePhaseCommitCohort(DOMDataTreeIdentifier prefix, ForeignShardModificationContext shard)
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ListenableFuture<Void>
abort()
Deprecated, for removal: This API element is subject to removal in a future version.Initiates a abort phase of associated transaction on data store.ListenableFuture<Boolean>
canCommit()
Deprecated, for removal: This API element is subject to removal in a future version.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.ListenableFuture<Void>
commit()
Deprecated, for removal: This API element is subject to removal in a future version.Initiates a commit phase on of associated transaction on data store.ListenableFuture<Void>
preCommit()
Deprecated, for removal: This API element is subject to removal in a future version.Initiates a pre-commit phase of associated transaction on datastore.
-
-
-
Constructor Detail
-
ForeignShardThreePhaseCommitCohort
public ForeignShardThreePhaseCommitCohort(DOMDataTreeIdentifier prefix, ForeignShardModificationContext shard)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
canCommit
public ListenableFuture<Boolean> canCommit()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DOMStoreThreePhaseCommitCohort
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.- Specified by:
canCommit
in interfaceDOMStoreThreePhaseCommitCohort
- Returns:
- ListenableFuture with vote of the participant. Vote
Future.get()
is following:- true if transaction is approved by data store.
- false if the transaction is not approved by data store and should be aborted.
-
preCommit
public ListenableFuture<Void> preCommit()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DOMStoreThreePhaseCommitCohort
Initiates a pre-commit phase of associated transaction on datastore.This message is valid only and only if the participant responded on
DOMStoreThreePhaseCommitCohort.canCommit()
call with positive response.- Specified by:
preCommit
in interfaceDOMStoreThreePhaseCommitCohort
- Returns:
- ListenableFuture representing acknowledgment for participant that pre-commit message was received and processed.
-
abort
public ListenableFuture<Void> abort()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DOMStoreThreePhaseCommitCohort
Initiates a abort phase of associated transaction on data store.- Specified by:
abort
in interfaceDOMStoreThreePhaseCommitCohort
- Returns:
- ListenableFuture representing acknowledgment for participant that abort message was received.
-
commit
public ListenableFuture<Void> commit()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DOMStoreThreePhaseCommitCohort
Initiates a commit phase on of associated transaction on data store.- Specified by:
commit
in interfaceDOMStoreThreePhaseCommitCohort
- Returns:
- ListenableFuture representing acknowledgment for participant that commit message was received and commit of transaction was processed.
-
-