Interface ProgressWorker.ProgressTask<T,V>

Type Parameters:
T - the task result type
V - the intermediate result type
Enclosing class:
ProgressWorker<T,V>

public static interface ProgressWorker.ProgressTask<T,V>
A progress aware background task.
  • 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