Package io.jmix.ui.executor.impl
Interface TaskExecutor<T,V>
public interface TaskExecutor<T,V>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getTask()
void
handleProgress
(T... changes) Handle changes from working threadboolean
boolean
boolean
isDone()
void
setFinalizer
(Runnable finalizer) Done handler for clear resourcesvoid
-
Method Details
-
startExecution
void startExecution() -
cancelExecution
boolean cancelExecution() -
getResult
-
getTask
BackgroundTask<T,V> getTask() -
isCancelled
boolean isCancelled() -
isDone
boolean isDone() -
inProgress
boolean inProgress() -
setFinalizer
Done handler for clear resources- Parameters:
finalizer
- Runnable handler
-
getFinalizer
Runnable getFinalizer() -
handleProgress
Handle changes from working thread- Parameters:
changes
- Changes
-