Package com.atlassian.bamboo.plan
Interface PlanExecutionLaunchControl
- All Known Implementing Classes:
PlanExecutionLaunchControlImpl
@Internal
public interface PlanExecutionLaunchControl
- Since:
- 9.3
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Release actions generated as a result of completing scheduling command and acquiring all locks needed by specifiedTriggerableInternalKey
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final PlanExecutionLaunchControl.ReleaseLocksActions
Empty Release Action which does not release any locks. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
NO_OP_RELEASE_LOCKS_ACTION
Empty Release Action which does not release any locks.
-
-
Method Details
-
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.
-