public class ThreadedTaskService extends WWObjectImpl implements TaskService, Thread.UncaughtExceptionHandler
| Constructor and Description |
|---|
ThreadedTaskService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTask(Runnable runnable)
Enqueues a task to run.
|
boolean |
contains(Runnable runnable) |
boolean |
hasActiveTasks() |
boolean |
isFull() |
void |
shutdown(boolean immediately) |
void |
uncaughtException(Thread thread,
Throwable throwable) |
onMessage, propertyChangeaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuespublic void addTask(Runnable runnable)
addTask in interface TaskServicerunnable - the task to addIllegalArgumentException - if runnable is nullpublic boolean contains(Runnable runnable)
contains in interface TaskServicepublic boolean hasActiveTasks()
hasActiveTasks in interface TaskServicepublic boolean isFull()
isFull in interface TaskServicepublic void shutdown(boolean immediately)
shutdown in interface TaskServicepublic void uncaughtException(Thread thread, Throwable throwable)
uncaughtException in interface Thread.UncaughtExceptionHandler