-
- All Known Subinterfaces:
ProgressTracker.MultipartProgress
- Enclosing class:
- ProgressTracker
public static interface ProgressTracker.ProgressA progress event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description longbytesTransferred()Returns the number of transferred bytes for this event.longcontentLength()Returns content length, or a value less than zero if unknown.default booleandeterminate()Returnstrueif this progress is determinate (i.e.booleandone()Returnstrueif the upload or download operation is done.java.time.DurationtimePassed()Returns the time passed between this and the previous progress events.java.lang.StringtoString()longtotalBytesTransferred()Returns the total number of bytes transferred so far.java.time.DurationtotalTimePassed()Returns the total time passed since the upload or download operation has begun.default doublevalue()
-
-
-
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()
Returnstrueif the upload or download operation is done.
-
value
default double value()
-
determinate
default boolean determinate()
Returnstrueif this progress is determinate (i.e. content length is known).
-
toString
java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-