Module is.codion.swing.common.model
Interface ProgressWorker.ProgressTask<V>
- Type Parameters:
V
- the intermediate result type
- Enclosing class:
ProgressWorker<T,
V>
public static interface ProgressWorker.ProgressTask<V>
A progress aware background task.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(ProgressWorker.ProgressReporter<V> progressReporter) Executes the task.default int
DefaultProgressWorker.DEFAULT_MAXIMUM_PROGRESS
(100)
-
Method Details
-
execute
Executes the task.- Parameters:
progressReporter
- the progress reporter to report a message or progress (0 - maximumProgress).- Throws:
Exception
- in case of an exception
-
maximumProgress
default int maximumProgress()DefaultProgressWorker.DEFAULT_MAXIMUM_PROGRESS
(100)- Returns:
- the maximum progress this task will report
-