Interface ProgressReceiver

All Superinterfaces:
ProgressListener

@Deprecated public interface ProgressReceiver extends ProgressListener
Deprecated.
A ProgressReceiver is an object that can be used to report progress on network transfers. When specified on transfer operations, the reportProgress method will be called periodically with the total number of bytes transferred. The user may configure this method to report progress in whatever format desired. It is recommended that this type be used in conjunction with ProgressReporter.addProgressReporting(Flux, ProgressReceiver) to enable reporting on sequential transfers. Note that any method accepting a ParallelTransferOptions will use the ProgressReceiver specified there and will handle the logic to coordinate the reporting between parallel operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    handleProgress(long bytesTransferred)
    Deprecated.
    The callback function invoked as progress is reported.
    void
    reportProgress(long bytesTransferred)
    Deprecated.
    The callback function invoked as progress is reported.
  • Method Details

    • reportProgress

      void reportProgress(long bytesTransferred)
      Deprecated.
      The callback function invoked as progress is reported.
      Parameters:
      bytesTransferred - The total number of bytes transferred during this transaction.
    • handleProgress

      default void handleProgress(long bytesTransferred)
      Deprecated.
      Description copied from interface: ProgressListener
      The callback function invoked as progress is reported.

      The callback can be called concurrently from multiple threads if reporting spans across multiple requests. The implementor must not perform thread blocking operations in the handler code.

      Specified by:
      handleProgress in interface ProgressListener
      Parameters:
      bytesTransferred - The total progress at the current point of time.