Package io.jmix.ui.executor
Interface WatchDog
- All Known Implementing Classes:
TasksWatchDog,WebTasksWatchDog
public interface WatchDog
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemove finished, canceled or hangup tasks.intvoidmanageTask(TaskHandlerImpl taskHandler) Add task under WatchDog control.voidremoveTask(TaskHandlerImpl taskHandler) Task completed, remove it from watches.voidStop 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
-