@Internal public class ItemDetections<T> extends Object
Constructor and Description |
---|
ItemDetections() |
Modifier and Type | Method and Description |
---|---|
void |
end(T item) |
T |
getDetectionRequest() |
DetectionQueue<T> |
getQueuedDetections() |
boolean |
queue(T item) |
boolean |
queue(T item,
boolean withTopPriority) |
boolean |
start(T item)
If detection item isn't already in progress will remove it from queued detections and add it to detections in
progress
|
void |
waitForEnd(T item)
Waits for item to finish only if it's already in progress.
|
public boolean queue(@NotNull T item)
public boolean queue(@NotNull T item, boolean withTopPriority)
public T getDetectionRequest()
public boolean start(@NotNull T item)
item
- item to addpublic void end(@NotNull T item)
public void waitForEnd(@NotNull T item)
public DetectionQueue<T> getQueuedDetections()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.