Package com.atlassian.bamboo.plan
Class PlanExecutionLaunchControlImpl.PerTriggerableMemory
java.lang.Object
com.atlassian.bamboo.plan.PlanExecutionLaunchControlImpl.PerTriggerableMemory
- Enclosing class:
PlanExecutionLaunchControlImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.google.common.collect.Multimap<TriggerableInternalKey, PlanExecutionLaunchControlImpl.ExecutionRequestEntry> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(@NotNull TriggerableInternalKey key, @NotNull PlanExecutionLaunchControlImpl.ExecutionRequestEntry value) voidclear()notifyAboutReleasedLock(@NotNull TriggerableInternalKey triggerableInternalKey) Notify the longest waiting triggerable with requested triggerableInternalKey that one of the locks it needs is free.
-
Field Details
-
map
protected final com.google.common.collect.Multimap<TriggerableInternalKey,PlanExecutionLaunchControlImpl.ExecutionRequestEntry> map
-
-
Constructor Details
-
PerTriggerableMemory
protected PerTriggerableMemory()
-
-
Method Details
-
notifyAboutReleasedLock
public Optional<PlanExecutionLaunchControlImpl.ExecutionRequestEntry> notifyAboutReleasedLock(@NotNull @NotNull TriggerableInternalKey triggerableInternalKey) Notify the longest waiting triggerable with requested triggerableInternalKey that one of the locks it needs is free.- Returns:
PlanExecutionLaunchControlImpl.ExecutionRequestEntrythat is ready to be executed or Empty if there is no ready to execute entry at this point
-
add
public void add(@NotNull @NotNull TriggerableInternalKey key, @NotNull @NotNull PlanExecutionLaunchControlImpl.ExecutionRequestEntry value) -
clear
public void clear()
-