Interface ProgressWorker.ProgressResultTask<T,V>

Type Parameters:
T - the task result type
V - 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 Details

    • execute

      T execute(ProgressWorker.ProgressReporter<V> progressReporter) throws Exception
      Executes the task.
      Parameters:
      progressReporter - the progress reporter to report a message or progress (0 - maximumProgress).
      Returns:
      the task result
      Throws:
      Exception - in case of an exception