|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--org.jwarp.service.threadpool.PooledThread
Thread that is used in the ThreadPool.
| Fields inherited from class java.lang.Thread |
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals |
| Constructor Summary | |
PooledThread()
Creates a PooledThread. |
|
PooledThread(java.lang.String threadName)
Creates a PooledThread and gives the thread a name. |
|
| Method Summary | |
void |
resumeThread()
This stops the thread after the current runnable has executed by setting the running flag to false; |
void |
run()
Main loop of the thread. |
void |
setWorkQueue(WorkQueue workQueue)
Sets the work queue of this thread. |
void |
stopThread()
This stops the thread after the current runnable has executed by setting the running flag to false; |
void |
suspendThread()
This stops the thread after the current runnable has executed by setting the running flag to false; |
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PooledThread()
public PooledThread(java.lang.String threadName)
threadName - the name of the thread| Method Detail |
public final void setWorkQueue(WorkQueue workQueue)
workQueue - The wirk queuepublic final void stopThread()
public final void resumeThread()
public final void suspendThread()
public final void run()
run in class java.lang.Thread
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||