Interface PostCanCommitStep
-
- All Superinterfaces:
ThreePhaseCommitStep
@Beta public interface PostCanCommitStep extends ThreePhaseCommitStep
User implementation of steps following can-commit in three phase protocol. If no additional visibility into transaction and data being aborted or committed is needed, useNOOP
implementation.
-
-
Field Summary
Fields Modifier and Type Field Description static PostCanCommitStep
NOOP
No-op implementation of abort, pre-commit and commit steps.static @NonNull FluentFuture<PostCanCommitStep>
NOOP_SUCCESSFUL_FUTURE
-
Fields inherited from interface org.opendaylight.mdsal.common.api.ThreePhaseCommitStep
NOOP_ABORT_FUTURE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull ListenableFuture<? extends PostPreCommitStep>
preCommit()
Initiates a pre-commit of associated request Implementation MUST NOT do any blocking calls during this callback, all pre-commit preparation SHOULD happen asynchronously and MUST result in completing returned future object.-
Methods inherited from interface org.opendaylight.mdsal.common.api.ThreePhaseCommitStep
abort
-
-
-
-
Field Detail
-
NOOP
static final PostCanCommitStep NOOP
No-op implementation of abort, pre-commit and commit steps. This implementation should be used if user logic does only validation of data and does not need to perform any actions associated with pre-commit, commit or abort.
-
NOOP_SUCCESSFUL_FUTURE
static final @NonNull FluentFuture<PostCanCommitStep> NOOP_SUCCESSFUL_FUTURE
-
-
Method Detail
-
preCommit
@NonNull ListenableFuture<? extends PostPreCommitStep> preCommit()
Initiates a pre-commit of associated request Implementation MUST NOT do any blocking calls during this callback, all pre-commit preparation SHOULD happen asynchronously and MUST result in completing returned future object.- Returns:
- Future which is completed once pre-commit phase for this request is finished.
-
-