|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.snmp4j.util.DefaultThreadFactory.WorkerThread
public class DefaultThreadFactory.WorkerThread
Constructor Summary | |
---|---|
DefaultThreadFactory.WorkerThread(java.lang.String name,
WorkerTask task)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultThreadFactory.WorkerThread(java.lang.String name, WorkerTask task)
Method Detail |
---|
public void terminate()
WorkerTask
WorkerPool
might call this method to hint the active
WorkTask
instance to complete execution as soon as possible.
terminate
in interface WorkerTask
public void join() throws java.lang.InterruptedException
WorkerTask
join
in interface WorkerTask
java.lang.InterruptedException
public void run()
run
in interface java.lang.Runnable
public void interrupt()
WorkerTask
interrupt
in interface WorkerTask
Thread.interrupt()
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |