Class AbsoluteStrategy
- java.lang.Object
-
- jenkins.advancedqueue.sorter.SorterStrategy
-
- jenkins.advancedqueue.sorter.strategy.MultiBucketStrategy
-
- jenkins.advancedqueue.sorter.strategy.AbsoluteStrategy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<SorterStrategy>
public class AbsoluteStrategy extends MultiBucketStrategy
- Since:
- 2.0
- Author:
- Magnus Sandberg
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbsoluteStrategy.DescriptorImpl
-
Nested classes/interfaces inherited from class jenkins.advancedqueue.sorter.strategy.MultiBucketStrategy
MultiBucketStrategy.MultiBucketStrategyDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class jenkins.advancedqueue.sorter.strategy.MultiBucketStrategy
DEFAULT_PRIORITIES_NUMBER, DEFAULT_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description AbsoluteStrategy()
AbsoluteStrategy(int numberOfPriorities, int defaultPriority)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SorterStrategyCallback
onNewItem(Queue.Item item, SorterStrategyCallback weightCallback)
Called when a newItem
enters the queue.-
Methods inherited from class jenkins.advancedqueue.sorter.strategy.MultiBucketStrategy
doFillDefaultPriorityItems, getDefaultPriority, getNumberOfPriorities
-
Methods inherited from class jenkins.advancedqueue.sorter.SorterStrategy
all, getAllSorterStrategies, getDescriptor, getPrioritySorterStrategy, getSorterStrategy, onCanceledItem, onStartedItem
-
-
-
-
Method Detail
-
onNewItem
public SorterStrategyCallback onNewItem(Queue.Item item, SorterStrategyCallback weightCallback)
Description copied from class:SorterStrategy
Called when a newItem
enters the queue.- Specified by:
onNewItem
in classSorterStrategy
- Parameters:
item
- theQueue.WaitingItem
orBuildableItem
that enters the queueweightCallback
- the callback holds the priority to use anded the called method must set the weight before returning- Returns:
- the
SorterStrategyCallback
provided to the call must be returned
-
-