public class Progress
extends java.lang.Object
ProgressSupport
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
MSG |
static Progress |
NOOP |
Modifier | Constructor and Description |
---|---|
protected |
Progress() |
Modifier and Type | Method and Description |
---|---|
void |
addRequestBytesTransferred(long bytes) |
void |
addRequestContentLength(long contentLength) |
void |
addResponseBytesTransferred(long bytes) |
void |
addResponseContentLength(long contentLength) |
long |
getRequestBytesTransferred() |
long |
getRequestContentLength() |
long |
getResponseBytesTransferred() |
long |
getResponseContentLength() |
boolean |
isEnabled()
Returns true if progress tracking is enabled; false otherwise.
|
public static final Progress NOOP
private static final java.lang.String MSG
public boolean isEnabled()
public void addRequestBytesTransferred(long bytes)
bytes
- can be negative if it was a reset event.public void addResponseBytesTransferred(long bytes)
bytes
- can be negative if it was a reset event.public long getRequestContentLength()
public void addRequestContentLength(long contentLength)
public long getRequestBytesTransferred()
public long getResponseContentLength()
public void addResponseContentLength(long contentLength)
public long getResponseBytesTransferred()