Interface PostPreCommitStep
- All Superinterfaces:
ThreePhaseCommitStep
User implementation of steps following pre-commit from Three-Phase Protocol.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PostPreCommitStep
No-op implementation ofThreePhaseCommitStep.abort()
andcommit()
method, which always success calls.static final @NonNull ListenableFuture<?>
static final @NonNull ListenableFuture<? extends PostPreCommitStep>
Fields inherited from interface org.opendaylight.mdsal.common.api.ThreePhaseCommitStep
NOOP_ABORT_FUTURE
-
Method Summary
Modifier and TypeMethodDescription@NonNull ListenableFuture<?>
commit()
Commits cohort transaction.Methods inherited from interface org.opendaylight.mdsal.common.api.ThreePhaseCommitStep
abort
-
Field Details
-
NOOP
No-op implementation ofThreePhaseCommitStep.abort()
andcommit()
method, which always success calls. This implementation is intended for users which may not need to implement commit and abort method. -
NOOP_COMMIT_FUTURE
-
NOOP_FUTURE
-
-
Method Details
-
commit
@NonNull ListenableFuture<?> commit()Commits cohort transaction. This callback is invoked by three-phase commit coordinator if associated data transaction finished pre-commit phase and will be commited. Implementation should make state, which were derived by implementation from associated data visible.- Returns:
- Listenable Future which will complete once commit is finished.
-