Package org.filestack

Class Progress<T>

java.lang.Object
org.filestack.Progress<T>

public class Progress<T> extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Progress(long bytesMoved, long bytesTotal, int elapsed, double rate, T data)
    Deprecated.
    access to this constructor is scheduled to be limited in 1.0.0 to internal use only.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    long
     
    Get any data associated with the transfer.
    int
    Time elapsed in seconds.
    int
    Estimated time left in seconds given current progress and rate.
    double
     
    double
    Average transfer rate in bytes/second.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Progress

      @Deprecated public Progress(long bytesMoved, long bytesTotal, int elapsed, double rate, T data)
      Deprecated.
      access to this constructor is scheduled to be limited in 1.0.0 to internal use only.
      Basic constructor for Progress.
  • Method Details

    • getBytesMoved

      public long getBytesMoved()
    • getBytesTotal

      public long getBytesTotal()
    • getPercent

      public double getPercent()
    • getElapsed

      public int getElapsed()
      Time elapsed in seconds.
    • getRate

      public double getRate()
      Average transfer rate in bytes/second.
    • getEta

      public int getEta()
      Estimated time left in seconds given current progress and rate.
    • getData

      public T getData()
      Get any data associated with the transfer. May be null.