Module methanol

Interface ProgressTracker.Progress

All Known Subinterfaces:
ProgressTracker.MultipartProgress
Enclosing class:
ProgressTracker

public static interface ProgressTracker.Progress
A progress event.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the number of transferred bytes for this event.
    long
    Returns content length, or a value less than zero if unknown.
    default boolean
    Returns true if this progress is determinate (i.e.
    boolean
    Returns true if the upload or download operation is done.
    Returns the time passed between this and the previous progress events.
     
    long
    Returns the total number of bytes transferred so far.
    Returns the total time passed since the upload or download operation has begun.
    default double
    Returns a double between 0 and 1 indicating progress, or Double.NaN if not determinate().
  • Method Details

    • 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

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

      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

      String toString()
      Overrides:
      toString in class Object