Package io.jmix.ui.executor
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 Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidPublish changes to show progress.
-
Method Details
-
publish
Publish changes to show progress.- Parameters:
changes- Changes- Throws:
InterruptedException- if task was interrupted by callingBackgroundTaskHandler.cancel()
-
isInterrupted
boolean isInterrupted()- Returns:
- true if the working thread has been interrupted
-
isCancelled
boolean isCancelled()- Returns:
- true if a task was interrupted by calling the "cancel" method
-
getParams
- Returns:
- execution parameters that was set by
BackgroundTask.getParams()
-