|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--javatools.thread.ThreadPoolThread
An internal class only for use with ThreadPool. It will notify the ThreadPool when it is done so that ThreadPool can get another piece of work going.
| Field Summary | |
(package private) boolean |
busy
|
(package private) boolean |
keepGoing
|
(package private) ThreadPool |
pool
|
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
ThreadPoolThread(ThreadPool pool,
java.lang.ThreadGroup threadGroup,
java.lang.String name)
Create a thread belonging to a particular ThreadPool. |
|
| Method Summary | |
(package private) boolean |
isBusy()
Return whether this thread is currently busy. |
void |
run()
Loop forever, waiting for work to do. |
(package private) void |
shutdown()
Set the shutdown flag, and stop the thread the next time through the loop. |
| 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 |
| Field Detail |
ThreadPool pool
boolean busy
boolean keepGoing
| Constructor Detail |
public ThreadPoolThread(ThreadPool pool,
java.lang.ThreadGroup threadGroup,
java.lang.String name)
pool - the Threadpool this thread belongs tothreadGroup - the ThreadGroup this thread belongs toname - the name of this thread| Method Detail |
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadboolean isBusy()
void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||