@ThreadSafe public class Progress extends Object
ProgressSupport
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
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()
Copyright © 2020. All rights reserved.