public class RunnableManager.SynchronizedRunnableManager extends RunnableManager
RunnableManager.ManagerRunnable, RunnableManager.SynchronizedRunnableManagerSIZE_UNLIMITED| Constructor and Description |
|---|
RunnableManager.SynchronizedRunnableManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Runnable newRunnable)
Add a Runnable.
|
void |
start()
Start.
|
void |
stop()
Stop.
|
getMaxSize, getName, getSize, isRunning, setMaxSize, setNamepublic RunnableManager.SynchronizedRunnableManager()
public void add(Runnable newRunnable)
RunnableManageradd in class RunnableManagernewRunnable - 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 RunnableManagerpublic void stop()
RunnableManagerThis 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 RunnableManagerCopyright © 2014 LSST. All Rights Reserved.