Package io.jmix.flowui.backgroundtask
Interface BackgroundTaskWatchDog
- All Known Implementing Classes:
BackgroundTaskWatchDogImpl
public interface BackgroundTaskWatchDog
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Removes finished, canceled or hangup tasks.int
void
manageTask
(TaskHandlerImpl taskHandler) Adds task underBackgroundTaskWatchDog
control.void
removeTask
(TaskHandlerImpl taskHandler) Task completed, remove it from watches.void
Stops execution of all background tasks.
-
Method Details
-
manageTask
Adds task underBackgroundTaskWatchDog
control.- Parameters:
taskHandler
- task handler
-
removeTask
Task completed, remove it from watches.- Parameters:
taskHandler
- task handler
-
cleanupTasks
void cleanupTasks()Removes finished, canceled or hangup tasks. -
stopTasks
void stopTasks()Stops execution of all background tasks. -
getActiveTasksCount
int getActiveTasksCount()- Returns:
- active tasks count
-