|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--JavaGroups.ReusableThread
Reusable thread class. Instead of creating a new thread per task, this instance can be reused
to run different tasks in turn. This is done by looping and assigning the Runnable target objects
whose run method is then called.
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
| Constructor Summary | |
ReusableThread()
|
|
| Method Summary | |
void |
AssignTask(java.lang.Runnable target)
|
boolean |
Available()
|
boolean |
Done()
|
void |
finalize()
|
static void |
main(java.lang.String[] args)
|
void |
run()
|
void |
SetAvailable(boolean a)
|
void |
Start()
|
void |
Stop()
|
void |
WaitUntilDone()
|
| 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 |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public ReusableThread()
| Method Detail |
public void Start()
public void Stop()
public void finalize()
public void AssignTask(java.lang.Runnable target)
public void run()
public void SetAvailable(boolean a)
public boolean Available()
public boolean Done()
public void WaitUntilDone()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||