public interface WorkerTask
extends java.lang.Runnable
WorkerTask instance that would be executed by a
WorkerPool upon submission.| Modifier and Type | Method and Description |
|---|---|
void |
interrupt()
Interrupts this task.
|
void |
join()
Waits until this task has been finished.
|
void |
terminate()
The
WorkerPool might call this method to hint the active
WorkTask instance to complete execution as soon as possible. |
void terminate()
WorkerPool might call this method to hint the active
WorkTask instance to complete execution as soon as possible.void join() throws java.lang.InterruptedException
java.lang.InterruptedExceptionvoid interrupt()
Thread.interrupt()