Package jenkins.model.queue
Class QueueIdStrategy.DefaultStrategy
java.lang.Object
jenkins.model.queue.QueueIdStrategy
jenkins.model.queue.QueueIdStrategy.DefaultStrategy
- All Implemented Interfaces:
- ExtensionPoint
- Enclosing class:
- QueueIdStrategy
Default implementation if no extension is found. Simply uses a counter.
- 
Nested Class SummaryNested classes/interfaces inherited from class jenkins.model.queue.QueueIdStrategyQueueIdStrategy.DefaultStrategyNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlonggenerateIdFor(Queue.Task project, List<Action> actions) Generates a new ID for the given project and actions.static longvoidload(Queue.State queueState) Loads the state of this strategy from a persisted queue state.voidpersist(Queue.State queueState) Persist the state of this strategy.Methods inherited from class jenkins.model.queue.QueueIdStrategyget
- 
Constructor Details- 
DefaultStrategypublic DefaultStrategy()
 
- 
- 
Method Details- 
generateIdForDescription copied from class:QueueIdStrategyGenerates a new ID for the given project and actions.- Specified by:
- generateIdForin class- QueueIdStrategy
- Parameters:
- project- The task to be queued.
- actions- The actions linked the task.
- Returns:
- a new queue ID.
 
- 
persistDescription copied from class:QueueIdStrategyPersist the state of this strategy.- Overrides:
- persistin class- QueueIdStrategy
 
- 
loadDescription copied from class:QueueIdStrategyLoads the state of this strategy from a persisted queue state.- Overrides:
- loadin class- QueueIdStrategy
 
- 
getCurrentCounterValue@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public static long getCurrentCounterValue()
 
-