public interface TaskService
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 addTask(Runnable runnable)
runnable
- the task to addIllegalArgumentException
- if runnable
is nullboolean contains(Runnable runnable)
boolean hasActiveTasks()
boolean isFull()
void shutdown(boolean immediately)