Package com.atlassian.bamboo.plan
Interface PlanExecutionLaunchControl
-
- All Known Implementing Classes:
PlanExecutionLaunchControlImpl
@ExperimentalApi public interface PlanExecutionLaunchControl
- Since:
- 9.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
PlanExecutionLaunchControl.ReleaseLocksActions
Release actions generated as a result of completing scheduling command and acquiring all locks needed by specifiedTriggerableInternalKey
.
-
Field Summary
Fields Modifier and Type Field Description static PlanExecutionLaunchControl.ReleaseLocksActions
NO_OP_RELEASE_LOCKS_ACTION
Empty Release Action which does not release any locks.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clears the whole internal state of the launch control object by removing the tracking of currently acquired locks.void
schedule(@NotNull TriggerableInternalKey triggerableInternalKey, @Nullable BuildDetectionAction buildDetectionAction, @NotNull Consumer<PlanExecutionLaunchControl.ReleaseLocksActions> runnableBody)
Scheduling theTriggerableInternalKey
to execute.
-
-
-
Field Detail
-
NO_OP_RELEASE_LOCKS_ACTION
static final PlanExecutionLaunchControl.ReleaseLocksActions NO_OP_RELEASE_LOCKS_ACTION
Empty Release Action which does not release any locks.
-
-
Method Detail
-
schedule
void schedule(@NotNull @NotNull TriggerableInternalKey triggerableInternalKey, @Nullable @Nullable BuildDetectionAction buildDetectionAction, @NotNull @NotNull Consumer<PlanExecutionLaunchControl.ReleaseLocksActions> runnableBody)
Scheduling theTriggerableInternalKey
to execute. The launch control will execute the request once it is the most effective. All scheduled actions will be eventually executed.- Parameters:
triggerableInternalKey
- key of the triggerable that asked for executionbuildDetectionAction
- action in which context the execution will be maderunnableBody
- the side effect that will be executed once the launch control decides it is the best time to do so
-
clear
void clear()
Clears the whole internal state of the launch control object by removing the tracking of currently acquired locks.
-
-