Interface JobProgressListener<T>

Type Parameters:
T - The type of object generated.
All Known Implementing Classes:
JobProgressAdapter

public interface JobProgressListener<T>
An interface listener that will be notified of the progress of an asynchronous generation job.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    done(T result)
    Called when the process is done.
    void
    progress(double value)
    Called when the process has made some progress.
    void
    Called when the process starts.
    void
    step(String message)
    Can be called when a step of the process has been completed with a relevant message.
  • Method Details

    • start

      void start()
      Called when the process starts.
    • step

      void step(String message)
      Can be called when a step of the process has been completed with a relevant message.
      Parameters:
      message - the message stating of the particular step completion.
    • progress

      void progress(double value)
      Called when the process has made some progress.
      Parameters:
      value - a value from 0 to 1 representing the percentage of completion of the process.
    • done

      void done(T result)
      Called when the process is done.
      Parameters:
      result - the object generated by the process.