|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jcs.utils.threads.ThreadPool.ControlRunnable
A Thread object that executes various actions ( IThreadPoolRunnable ) under control of ThreadPool
| Field Summary | |
(package private) boolean |
noThData
Per thread data - can be used only if all actions are of the same type. |
(package private) ThreadPool |
p
ThreadPool where this thread will be returned |
(package private) boolean |
shouldRun
Activate the execution of the action |
(package private) boolean |
shouldTerminate
Stop this thread |
(package private) java.lang.Thread |
t
The thread that executes the actions |
(package private) java.lang.Object[] |
thData
|
(package private) IThreadPoolRunnable |
toRun
The method that is executed in this thread |
| Constructor Summary | |
(package private) |
ThreadPool.ControlRunnable(ThreadPool p)
Start a new thread, with no method in it |
| Method Summary | |
void |
run()
Main processing method for the ControlRunnable object |
void |
runIt(IThreadPoolRunnable toRun)
Description of the Method |
void |
terminate()
Description of the Method |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
ThreadPool p
java.lang.Thread t
IThreadPoolRunnable toRun
boolean shouldTerminate
boolean shouldRun
boolean noThData
java.lang.Object[] thData
| Constructor Detail |
ThreadPool.ControlRunnable(ThreadPool p)
p - | Method Detail |
public void run()
run in interface java.lang.Runnablepublic void runIt(IThreadPoolRunnable toRun)
public void terminate()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||