Package io.jmix.flowui.backgroundtask
Class BackgroundTaskManager
java.lang.Object
io.jmix.flowui.backgroundtask.BackgroundTaskManager
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds task to task set.voidInterrupts all tasks.static BackgroundTaskManagerstatic booleanisBound()voidremoveTask(Future<?> task) Stops manage of stopped task.
- 
Constructor Details- 
BackgroundTaskManagerpublic BackgroundTaskManager()
 
- 
- 
Method Details- 
addTaskAdds task to task set.- Parameters:
- task- Task
 
- 
removeTaskStops manage of stopped task.- Parameters:
- task- Task
 
- 
cleanupTaskspublic void cleanupTasks()Interrupts all tasks.
- 
getInstance- Returns:
- background task manager instance corresponding current VaadinSession. Can be invoked anywhere in application code.
- Throws:
- IllegalStateException- if no background task manager instance is bound to the current- VaadinSession
 
- 
isBoundpublic static boolean isBound()- Returns:
- trueif an- BackgroundTaskManagerinstance is currently bound and can be safely obtained by- getInstance()
 
 
-