Interface TransferProgressCallback

All Known Implementing Classes:
LogProgressCallback

public interface TransferProgressCallback
The interface that is invoked during file upload/download transfers that enables client consumers to inspect the progress of the transfer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onComplete(long bytesTransferred)
    Callback to notify consumers of a completed transfer.
    void
    Callback to notify consumers of a failure during a transfer.
    void
    onUpdate(long currentBytes, long totalBytes)
    Callback to notify consumers of the current amount of bytes that have transferred.
  • Method Details

    • onUpdate

      void onUpdate(long currentBytes, long totalBytes)
      Callback to notify consumers of the current amount of bytes that have transferred.
      Parameters:
      currentBytes - the current amount of accumulative bytes transferred thus far
      totalBytes - the total amount of bytes for the transfer
    • onFailure

      void onFailure(Throwable cause)
      Callback to notify consumers of a failure during a transfer.
      Parameters:
      cause - the cause of the failure
    • onComplete

      void onComplete(long bytesTransferred)
      Callback to notify consumers of a completed transfer.
      Parameters:
      bytesTransferred - the total bytes transfered