Package org.snmp4j.util
Class DefaultThreadFactory.WorkerThread
java.lang.Object
org.snmp4j.util.DefaultThreadFactory.WorkerThread
- All Implemented Interfaces:
Runnable,WorkerTask
- Enclosing class:
DefaultThreadFactory
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WorkerThread
-
-
Method Details
-
terminate
public void terminate()Description copied from interface:WorkerTaskTheWorkerPoolmight call this method to hint the activeWorkTaskinstance to complete execution as soon as possible.- Specified by:
terminatein interfaceWorkerTask
-
join
Description copied from interface:WorkerTaskWaits until this task has been finished.- Specified by:
joinin interfaceWorkerTask- Throws:
InterruptedException- if the join has been interrupted by another thread.
-
run
public void run() -
interrupt
public void interrupt()Description copied from interface:WorkerTaskInterrupts this task.- Specified by:
interruptin interfaceWorkerTask- See Also:
-