Package io.jmix.flowui.backgroundtask
Interface BackgroundTaskWatchDog
- All Known Implementing Classes:
BackgroundTaskWatchDogImpl
public interface BackgroundTaskWatchDog
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves finished, canceled or hangup tasks.intvoidmanageTask(TaskHandlerImpl taskHandler) Adds task underBackgroundTaskWatchDogcontrol.voidremoveTask(TaskHandlerImpl taskHandler) Task completed, remove it from watches.voidStops execution of all background tasks.
-
Method Details
-
manageTask
Adds task underBackgroundTaskWatchDogcontrol.- 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
-