Package com.atlassian.bamboo.plan
Class PlanExecutionLaunchControlImpl.PerTriggerableMemory
java.lang.Object
com.atlassian.bamboo.plan.PlanExecutionLaunchControlImpl.PerTriggerableMemory
- Enclosing class:
- PlanExecutionLaunchControlImpl
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.google.common.collect.Multimap<TriggerableInternalKey,
PlanExecutionLaunchControlImpl.ExecutionRequestEntry> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(@NotNull TriggerableInternalKey key, @NotNull PlanExecutionLaunchControlImpl.ExecutionRequestEntry value) void
clear()
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.ExecutionRequestEntry
that 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()
-