Interface ProgressListener

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void progress​(long completed, long total)
      Provides feedback on the number of bytes completed and the total number of bytes to transfer.
      void transferred​(long size)
      Reports that some bytes have been transferred.
    • Method Detail

      • progress

        void progress​(long completed,
                      long total)
        Provides feedback on the number of bytes completed and the total number of bytes to transfer.
        Parameters:
        completed - bytes completely transferred
        total - total number of bytes to transfer
      • transferred

        void transferred​(long size)
        Reports that some bytes have been transferred. This is a raw method that will be called frequently and can be used for computing current transfer rate. Note that if data is retried, the sum of this method's events may be more than the total object size. For reporting on percent complete, use the progress method instead.
        Parameters:
        size - number of bytes transferred