T - the keyType of elements maintained by this Collectionpublic interface ObjectTask<T>
extends java.util.concurrent.RunnableFuture<T>
| Modifier and Type | Method and Description |
|---|---|
void |
awaitPausing()
Pauses the task, which lets the thread finish without completing the task.
|
boolean |
isPaused()
Helper function to detect if the task is currently paused.
|
boolean |
isSuccessful()
Quality of life function that allows to detect if no cancellation/exception was applied to this task and it completed on its own.
|
void |
pause()
Pauses the task, which lets the thread finish without completing the task.
|
void |
resume()
Continues the task if it wasn't already completed.
|
boolean isPaused()
void pause()
void awaitPausing()
void resume()
boolean isSuccessful()