Class CLICauseStrategy
- java.lang.Object
-
- jenkins.advancedqueue.priority.PriorityStrategy
-
- jenkins.advancedqueue.priority.strategy.AbstractStaticPriorityStrategy
-
- jenkins.advancedqueue.priority.strategy.CLICauseStrategy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<PriorityStrategy>
public class CLICauseStrategy extends AbstractStaticPriorityStrategy
- Since:
- 2.0
- Author:
- Magnus Sandberg
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CLICauseStrategy.UserIdCauseStrategyDescriptor
-
Nested classes/interfaces inherited from class jenkins.advancedqueue.priority.strategy.AbstractStaticPriorityStrategy
AbstractStaticPriorityStrategy.AbstractStaticPriorityStrategyDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description CLICauseStrategy(int priority)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isApplicable(Queue.Item item)
Method that checks if strategy can assign a priority to the providedQueue.Item
The caller guaranties that theQueue.Item.task
is aJob
-
Methods inherited from class jenkins.advancedqueue.priority.strategy.AbstractStaticPriorityStrategy
getDescriptor, getPriority, getPriority, numberPrioritiesUpdates, setPriority
-
Methods inherited from class jenkins.advancedqueue.priority.PriorityStrategy
all
-
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(Queue.Item item)
Description copied from class:PriorityStrategy
Method that checks if strategy can assign a priority to the providedQueue.Item
The caller guaranties that theQueue.Item.task
is aJob
- Specified by:
isApplicable
in classPriorityStrategy
- Parameters:
item
- theQueue.Item
to check- Returns:
true
if thePriorityStrategy
is applicable elsefalse
-
-