public interface WorkerTask extends 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 InterruptedException
InterruptedException - if the join has been interrupted by another thread.void interrupt()
Thread.interrupt()Copyright © 2020 SNMP4J.org. All rights reserved.