|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--org.huihoo.jfox.pool.thread.WorkerThread
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
WorkerThread()
|
|
| Method Summary | |
void |
activate()
actvite the object before it be retrived |
void |
destory()
|
void |
discard()
destroy this thread |
void |
passivate()
passivate the object before it be restored, set the status to initialized |
void |
run()
|
void |
setTask(org.huihoo.jfox.pool.thread.ThreadTask task)
|
| 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, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public WorkerThread()
| Method Detail |
public void run()
run in class java.lang.Thread
public void activate()
throws java.lang.Exception
PoolableObjectactivate in interface PoolableObject
public void passivate()
throws java.lang.Exception
PoolableObjectpassivate in interface PoolableObject
public void destory()
throws java.lang.Exception
public void setTask(org.huihoo.jfox.pool.thread.ThreadTask task)
setTask in interface org.huihoo.jfox.pool.thread.ThreadPoolableObjectpublic void discard()
org.huihoo.jfox.pool.thread.ThreadPoolableObjectdiscard in interface org.huihoo.jfox.pool.thread.ThreadPoolableObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||