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