Class ItemDetections<T>

java.lang.Object
com.atlassian.bamboo.util.concurrent.ItemDetections<T>

@Internal public class ItemDetections<T> extends Object
  • Constructor Details

    • ItemDetections

      public ItemDetections()
  • Method Details

    • queue

      public boolean queue(@NotNull T item)
    • queue

      public boolean queue(@NotNull T item, boolean withTopPriority)
    • getDetectionRequest

      public T getDetectionRequest()
    • start

      public boolean start(@NotNull T item)
      If detection item isn't already in progress will remove it from queued detections and add it to detections in progress
      Parameters:
      item - item to add
      Returns:
      true if item has been successfully added to detection in progress
    • end

      public void end(@NotNull T item)
    • waitForEnd

      public void waitForEnd(@NotNull T item)
      Waits for item to finish only if it's already in progress.
    • getQueuedDetections

      public DetectionQueue<T> getQueuedDetections()