Interface IProgressCallback


public interface IProgressCallback
This interface provides useful methods to implement to access to download and update status.
  • Method Details

    • init

      default void init(fr.flowarg.flowlogger.ILogger logger)
      This method is called at FlowUpdater initialization.
      Parameters:
      logger - ILogger of FlowUpdater instance.
    • step

      default void step(Step step)
      This method is called when a step started.
      Parameters:
      step - Actual Step.
    • update

      default void update(DownloadList.DownloadInfo info)
      This method is called when a new file is downloaded.
      Parameters:
      info - The DownloadList.DownloadInfo instance that contains all wanted information.
    • onFileDownloaded

      default void onFileDownloaded(Path path)
      This method is called before update(DownloadList.DownloadInfo) when a file is downloaded.
      Parameters:
      path - the file downloaded.