Package jenkins.model.queue
Class QueueIdStrategy
java.lang.Object
jenkins.model.queue.QueueIdStrategy
- All Implemented Interfaces:
- ExtensionPoint
- Direct Known Subclasses:
- QueueIdStrategy.DefaultStrategy
@Restricted(org.kohsuke.accmod.restrictions.Beta.class)
public abstract class QueueIdStrategy
extends Object
implements ExtensionPoint
Pluggable strategy to generate queue item IDs as well as persist an optional opaque state whenever the queue is persisted.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classDefault implementation if no extension is found.Nested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract longgenerateIdFor(Queue.Task project, List<Action> actions) Generates a new ID for the given project and actions.static QueueIdStrategyget()voidload(Queue.State queueState) Loads the state of this strategy from a persisted queue state.voidpersist(Queue.State queueState) Persist the state of this strategy.
- 
Constructor Details- 
QueueIdStrategypublic QueueIdStrategy()
 
- 
- 
Method Details- 
get
- 
persistPersist the state of this strategy.
- 
loadLoads the state of this strategy from a persisted queue state.
- 
generateIdForGenerates a new ID for the given project and actions.- Parameters:
- project- The task to be queued.
- actions- The actions linked the task.
- Returns:
- a new queue ID.
 
 
-