|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.mortbay.util.ThreadPool.PoolThread
Pool Thread run class. This class or derivations of it are recommended for use with the ThreadPool. The PoolThread allows the threads job to be retrieved and active status to be indicated.
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ThreadPool.PoolThread(java.lang.Runnable r)
|
Method Summary | |
java.lang.Object |
getJob()
|
boolean |
isActive()
Is the PoolThread active. |
void |
setActive(boolean active)
Set active state. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ThreadPool.PoolThread(java.lang.Runnable r)
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Thread
public java.lang.Object getJob()
public void setActive(boolean active)
active
- public boolean isActive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |