Module is.codion.common.model
Package is.codion.common.model.worker
Interface ProgressWorker.ProgressHandler<V>
- Type Parameters:
V- the intermediate result type
- All Superinterfaces:
ProgressWorker.Handler
- All Known Subinterfaces:
ProgressWorker.ProgressResultTaskHandler<T,,V> ProgressWorker.ProgressTaskHandler<V>
- All Known Implementing Classes:
DomainGeneratorModel.PopulateTask
- Enclosing class:
ProgressWorker<T,V>
Extends
ProgressWorker.Handler with progress and publish handlers.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonProgress(int progress) Called using theDispatcherwhen progress is reported, unless the task has been cancelled.default voidCalled using theDispatcherwhen intermediate results are available, unless the task has been cancelled.Methods inherited from interface is.codion.common.model.worker.ProgressWorker.Handler
onCancelled, onDone, onException, onStarted, onSuccess, onWorking
-
Method Details
-
onProgress
default void onProgress(int progress) Called using theDispatcherwhen progress is reported, unless the task has been cancelled.- Parameters:
progress- the progress value
-
onPublish
Called using theDispatcherwhen intermediate results are available, unless the task has been cancelled.- Parameters:
chunks- the published chunks
-