Package io.jmix.ui.executor
Interface WatchDog
- All Known Implementing Classes:
TasksWatchDog
,WebTasksWatchDog
public interface WatchDog
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Remove finished, canceled or hangup tasks.int
void
manageTask
(TaskHandlerImpl taskHandler) Add task under WatchDog control.void
removeTask
(TaskHandlerImpl taskHandler) Task completed, remove it from watches.void
Stop execution of all background tasks.
-
Method Details
-
manageTask
Add task under WatchDog control.- Parameters:
taskHandler
- task handler
-
removeTask
Task completed, remove it from watches.- Parameters:
taskHandler
- task handler
-
cleanupTasks
void cleanupTasks()Remove finished, canceled or hangup tasks. -
stopTasks
void stopTasks()Stop execution of all background tasks. -
getActiveTasksCount
int getActiveTasksCount()- Returns:
- active tasks count
-