Package com.atlassian.bamboo.plan
Interface PlanExecutionLaunchControl
- All Known Implementing Classes:
PlanExecutionLaunchControlImpl
@Internal
public interface PlanExecutionLaunchControl
- Since:
- 9.3
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRelease actions generated as a result of completing scheduling command and acquiring all locks needed by specifiedTriggerableInternalKey. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PlanExecutionLaunchControl.ReleaseLocksActionsEmpty Release Action which does not release any locks. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the whole internal state of the launch control object by removing the tracking of currently acquired locks.voidschedule(@NotNull TriggerableInternalKey triggerableInternalKey, @Nullable BuildDetectionAction buildDetectionAction, @NotNull Consumer<PlanExecutionLaunchControl.ReleaseLocksActions> runnableBody) Scheduling theTriggerableInternalKeyto 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 theTriggerableInternalKeyto 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.
-