Package io.jmix.flowui.backgroundtask
Interface TaskLifeCycle<T>
- Type Parameters:
- T- task progress measurement unit
public interface TaskLifeCycle<T>
Lifecycle object that is passed to 
BackgroundTask.run(TaskLifeCycle) method to allow working thread to
 interact with the execution environment.- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleanvoidPublishes changes to show progress.
- 
Method Details- 
publishPublishes changes to show progress.- Parameters:
- changes- Changes
- Throws:
- InterruptedException- if task was interrupted by calling- BackgroundTaskHandler.cancel()
 
- 
isInterruptedboolean isInterrupted()- Returns:
- trueif the working thread has been interrupted
 
- 
isCancelledboolean isCancelled()- Returns:
- trueif a task was interrupted by calling the "cancel" method
 
- 
getParams- Returns:
- execution parameters that was set by BackgroundTask.getParams()
 
 
-