Class StartedJobItemCache


  • public class StartedJobItemCache
    extends Object
    Keeps track of the Queue.Items seen by the Sorter, but removed from the queue to become jobs, for UpstreamCauseStrategy.
    Since:
    3.6.0
    Author:
    Ronny Schuetz
    • Method Detail

      • getStartedItem

        @CheckForNull
        public ItemInfo getStartedItem​(String projectName,
                                       int buildNumber)
        Gets the Item for a started job, already removed from the queue
        Parameters:
        projectName - the project name
        buildNumber - the build number
        Returns:
        the ItemInfo for the provided id or null if projectName/buildNumber combination is unknown
      • addItem

        public void addItem​(ItemInfo itemInfo,
                            WorkUnit primaryWorkUnit)