Class ItemDetections<T>
- java.lang.Object
-
- com.atlassian.bamboo.util.concurrent.ItemDetections<T>
-
@Internal public class ItemDetections<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description ItemDetections()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidend(T item)TgetDetectionRequest()DetectionQueue<T>getQueuedDetections()booleanqueue(T item)booleanqueue(T item, boolean withTopPriority)booleanstart(T item)If detection item isn't already in progress will remove it from queued detections and add it to detections in progressvoidwaitForEnd(T item)Waits for item to finish only if it's already in progress.
-
-
-
Method Detail
-
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()
-
-