Module bus.http

Interface ProgressListener

All Known Implementing Classes:
FileInterceptor

public interface ProgressListener
A listener interface for tracking the progress of data transfers (uploads or downloads).
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    updateProgress(long downloadLength, long totalLength, boolean done)
    Callback invoked to update the progress of a data transfer.
  • Method Details

    • updateProgress

      void updateProgress(long downloadLength, long totalLength, boolean done)
      Callback invoked to update the progress of a data transfer.
      Parameters:
      downloadLength - The number of bytes transferred so far.
      totalLength - The total size of the data in bytes.
      done - true if the transfer is complete, false otherwise.