Interface ProgressTracker.Progress
- All Known Subinterfaces:
ProgressTracker.MultipartProgress
- Enclosing class:
ProgressTracker
public static interface ProgressTracker.Progress
A progress event.
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the number of transferred bytes for this event.longReturns content length, or a value less than zero if unknown.default booleanReturnstrueif this progress is determinate (i.e.booleandone()Returnstrueif the upload or download operation is done.Returns the time passed between this and the previous progress events.toString()longReturns the total number of bytes transferred so far.Returns the total time passed since the upload or download operation has begun.default doublevalue()
-
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()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
-