Class QueueIdStrategy.DefaultStrategy

java.lang.Object
jenkins.model.queue.QueueIdStrategy
jenkins.model.queue.QueueIdStrategy.DefaultStrategy
All Implemented Interfaces:
ExtensionPoint
Enclosing class:
QueueIdStrategy

public static final class QueueIdStrategy.DefaultStrategy extends QueueIdStrategy
Default implementation if no extension is found. Simply uses a counter.
  • Constructor Details

    • DefaultStrategy

      public DefaultStrategy()
  • Method Details

    • generateIdFor

      public long generateIdFor(Queue.Task project, List<Action> actions)
      Description copied from class: QueueIdStrategy
      Generates a new ID for the given project and actions.
      Specified by:
      generateIdFor in class QueueIdStrategy
      Parameters:
      project - The task to be queued.
      actions - The actions linked the task.
      Returns:
      a new queue ID.
    • persist

      public void persist(Queue.State queueState)
      Description copied from class: QueueIdStrategy
      Persist the state of this strategy.
      Overrides:
      persist in class QueueIdStrategy
    • load

      public void load(Queue.State queueState)
      Description copied from class: QueueIdStrategy
      Loads the state of this strategy from a persisted queue state.
      Overrides:
      load in class QueueIdStrategy
    • getCurrentCounterValue

      @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public static long getCurrentCounterValue()