T
- task progress measurement unitpublic interface TaskLifeCycle<T>
BackgroundTask.run(TaskLifeCycle)
method to allow working thread to
interact with the execution environment.Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getParams() |
boolean |
isCancelled() |
boolean |
isInterrupted() |
void |
publish(T... changes)
Publish changes to show progress.
|
void publish(T... changes) throws java.lang.InterruptedException
changes
- Changesjava.lang.InterruptedException
- if task was interrupted by calling BackgroundTaskHandler.cancel()
boolean isInterrupted()
boolean isCancelled()
@Nonnull java.util.Map<java.lang.String,java.lang.Object> getParams()
BackgroundTask.getParams()