|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.jusb.util.RunnableManager com.ibm.jusb.util.RunnableManager.SynchronizedRunnableManager
public class RunnableManager.SynchronizedRunnableManager
An externally synchronized RunnableManager.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.ibm.jusb.util.RunnableManager |
---|
RunnableManager.SynchronizedRunnableManager |
Field Summary |
---|
Fields inherited from class com.ibm.jusb.util.RunnableManager |
---|
SIZE_UNLIMITED |
Constructor Summary | |
---|---|
RunnableManager.SynchronizedRunnableManager()
|
Method Summary | |
---|---|
void |
add(java.lang.Runnable newRunnable)
Add a Runnable. |
void |
start()
Start. |
void |
stop()
Stop. |
Methods inherited from class com.ibm.jusb.util.RunnableManager |
---|
getMaxSize, getName, getSize, isRunning, setMaxSize, setName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RunnableManager.SynchronizedRunnableManager()
Method Detail |
---|
public void add(java.lang.Runnable newRunnable)
RunnableManager
add
in class RunnableManager
newRunnable
- the Runnable to add.public void start()
RunnableManager
This must be started before any Runnables will be run.
If currently running
this will throw
a IllegalThreadStateException.
start
in class RunnableManager
public void stop()
RunnableManager
This stops the currently running Thread. If not yet started this effectively abandons any Runnables previously added without executing them. If already started any Runnables added but not run will still be run; the Thread will exit after all have been run.
After calling stop the RunnableManager's state is effectively identical to when it was initially created (but stopped), i.e. Runnables may be added and the RunnableManager must be started.
stop
in class RunnableManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |