Class ItemDetections<T>
java.lang.Object
com.atlassian.bamboo.util.concurrent.ItemDetections<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
boolean
If detection item isn't already in progress will remove it from queued detections and add it to detections in progressvoid
waitForEnd
(T item) Waits for item to finish only if it's already in progress.
-
Constructor Details
-
ItemDetections
public ItemDetections()
-
-
Method Details
-
queue
-
queue
-
getDetectionRequest
-
start
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
-
waitForEnd
Waits for item to finish only if it's already in progress. -
getQueuedDetections
-