|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread net.sf.jso.util.JoinerThread
A thread that informs its joiner that it is done to allow "collective join".
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
JoinerThread(ThreadsJoiner aJoiner,
java.lang.Runnable aTarget)
Constructs the joiner thread. |
|
JoinerThread(ThreadsJoiner aJoiner,
java.lang.Runnable aTarget,
java.lang.String aName)
Constructs the joiner thread. |
Method Summary | |
ThreadsJoiner |
getJoiner()
Returns thread's joiner. |
void |
run()
Class Runnable target's run() method is called.
|
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 JoinerThread(ThreadsJoiner aJoiner, java.lang.Runnable aTarget)
aJoiner
- Joiner to which the thread will collectivelly join.aTarget
- Runnable target to be run.public JoinerThread(ThreadsJoiner aJoiner, java.lang.Runnable aTarget, java.lang.String aName)
aJoiner
- Joiner to which the thread will collectivelly join.aTarget
- Runnable target to be run.aName
- Thread's name.Method Detail |
public ThreadsJoiner getJoiner()
public void run()
Runnable
target's run()
method is called.
Once completed informs joiner that the thread is stopping.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |