public class DefaultThreadFactory.WorkerThread extends Object implements WorkerTask
| Constructor and Description |
|---|
DefaultThreadFactory.WorkerThread(String name,
WorkerTask task) |
| Modifier and Type | Method and Description |
|---|---|
void |
interrupt()
Interrupts this task.
|
void |
join()
Waits until this task has been finished.
|
void |
run() |
void |
terminate()
The
WorkerPool might call this method to hint the active
WorkTask instance to complete execution as soon as possible. |
public DefaultThreadFactory.WorkerThread(String name, WorkerTask task)
public void terminate()
WorkerTaskWorkerPool might call this method to hint the active
WorkTask instance to complete execution as soon as possible.terminate in interface WorkerTaskpublic void join()
throws InterruptedException
WorkerTaskjoin in interface WorkerTaskInterruptedExceptionpublic void interrupt()
WorkerTaskinterrupt in interface WorkerTaskThread.interrupt()Copyright © 2016 SNMP4J.org. All Rights Reserved.