Module methanol

Interface ProgressTracker.Progress

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      long bytesTransferred()
      Returns the number of transferred bytes for this event.
      long contentLength()
      Returns content length, or a value less than zero if unknown.
      default boolean determinate()
      Returns true if this progress is determinate (i.e.
      boolean done()
      Returns true if the upload or download operation is done.
      java.time.Duration timePassed()
      Returns the time passed between this and the previous progress events.
      java.lang.String toString()  
      long totalBytesTransferred()
      Returns the total number of bytes transferred so far.
      java.time.Duration totalTimePassed()
      Returns the total time passed since the upload or download operation has begun.
      default double value()
      Returns a double between 0 and 1 indicating progress, or Double.NaN if not determinate().
    • Method Detail

      • bytesTransferred

        long bytesTransferred()
        Returns the number of transferred bytes for this event.
      • totalBytesTransferred

        long totalBytesTransferred()
        Returns the total number of bytes transferred so far.
      • timePassed

        java.time.Duration timePassed()
        Returns the time passed between this and the previous progress events.
      • totalTimePassed

        java.time.Duration totalTimePassed()
        Returns the total time passed since the upload or download operation has begun.
      • contentLength

        long contentLength()
        Returns content length, or a value less than zero if unknown.
      • done

        boolean done()
        Returns true if the upload or download operation is done.
      • value

        default double value()
        Returns a double between 0 and 1 indicating progress, or Double.NaN if not determinate().
      • determinate

        default boolean determinate()
        Returns true if this progress is determinate (i.e. content length is known).
      • toString

        java.lang.String toString()
        Overrides:
        toString in class java.lang.Object