Interface ProgressListener

All Known Implementing Classes:
AtomicProgressListener, ConsoleProgressListener, FileProgressListener

public interface ProgressListener
Interface for tracking and retrieving the progress of chunked processing tasks.
  • Method Summary

    Modifier and Type Method Description
    void onChunkProcessed()
    Called when a chunk of data has been processed.
    void setTotalChunks​(File inputFile, int totalChunks)
    Sets the total number of chunks to be processed.
  • Method Details

    • setTotalChunks

      void setTotalChunks​(File inputFile, int totalChunks)
      Sets the total number of chunks to be processed.
      Parameters:
      inputFile - the file path of the treatment
      totalChunks - the total number of chunks to be processed
    • onChunkProcessed

      void onChunkProcessed()
      Called when a chunk of data has been processed.