- All Known Subinterfaces:
ProgressTracker.MultipartProgress
- Enclosing class:
ProgressTracker
public static interface ProgressTracker.Progress
A progress event.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the number of transferred bytes for this event.long
Returns content length, or a value less than zero if unknown.default boolean
Returnstrue
if this progress is determinate (i.e.boolean
done()
Returnstrue
if the upload or download operation is done.Returns the time passed between this and the previous progress events.toString()
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
value()
-
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()Returnstrue
if the upload or download operation is done. -
value
default double value() -
determinate
default boolean determinate()Returnstrue
if this progress is determinate (i.e. content length is known). -
toString
String toString()
-