|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.huihoo.jfox.pool.thread.PoolableThreadImpl
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
PoolableThreadImpl()
|
|
| Method Summary | |
void |
activate()
actvite the object before it be retrived |
void |
discard()
destroy this thread |
void |
passivate()
passivate the object before it be restored, set the status to initialized |
void |
run()
When an object implementing interface Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread.
|
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, holdsLock, 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 PoolableThreadImpl()
| Method Detail |
public void run()
java.lang.RunnableRunnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread.
The general contract of the method run is that it may
take any action whatsoever.
run in interface java.lang.RunnableThread.start(),
Thread.stop(),
Thread.Thread(java.lang.ThreadGroup,
java.lang.Runnable, java.lang.String),
Runnable.run()
public void activate()
throws java.lang.Exception
PoolableObject
activate in interface PoolableObjectjava.lang.Exception
public void passivate()
throws java.lang.Exception
PoolableObject
passivate in interface PoolableObjectjava.lang.Exceptionpublic void setTask(org.huihoo.jfox.pool.thread.ThreadTask task)
setTask in interface org.huihoo.jfox.pool.thread.PoolableThreadpublic void discard()
org.huihoo.jfox.pool.thread.PoolableThread
discard in interface org.huihoo.jfox.pool.thread.PoolableThread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||