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>
- Since:
- 2.0
- Author:
- Magnus Sandberg
-
Nested Class Summary
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
-
Method Summary
Modifier and TypeMethodDescriptiononNewItem
(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
-
Constructor Details
-
AbsoluteStrategy
public AbsoluteStrategy() -
AbsoluteStrategy
@DataBoundConstructor public AbsoluteStrategy(int numberOfPriorities, int defaultPriority)
-
-
Method Details
-
onNewItem
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
-