public interface WatchDog
Modifier and Type | Method and Description |
---|---|
void |
cleanupTasks()
Remove finished, canceled or hangup tasks.
|
int |
getActiveTasksCount() |
void |
manageTask(TaskHandlerImpl taskHandler)
Add task under WatchDog control.
|
void |
removeTask(TaskHandlerImpl taskHandler)
Task completed, remove it from watches.
|
void |
stopTasks()
Stop execution of all background tasks.
|
void manageTask(TaskHandlerImpl taskHandler)
taskHandler
- task handlervoid removeTask(TaskHandlerImpl taskHandler)
taskHandler
- task handlervoid cleanupTasks()
void stopTasks()
int getActiveTasksCount()