Package com.amazonaws.event.request
Class Progress
java.lang.Object
com.amazonaws.event.request.Progress
- Direct Known Subclasses:
ProgressSupport
Base class used to represent the progress of a logical request/response,
which may correspond to either be a physical http request/response, or
multiple requests/responses as in a composite operation such as
multi-part uploads.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRequestBytesTransferred
(long bytes) void
addRequestContentLength
(long contentLength) void
addResponseBytesTransferred
(long bytes) void
addResponseContentLength
(long contentLength) long
long
long
long
boolean
Returns true if progress tracking is enabled; false otherwise.
-
Field Details
-
NOOP
-
-
Constructor Details
-
Progress
protected Progress()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns true if progress tracking is enabled; false otherwise. -
addRequestBytesTransferred
public void addRequestBytesTransferred(long bytes) - Parameters:
bytes
- can be negative if it was a reset event.
-
addResponseBytesTransferred
public void addResponseBytesTransferred(long bytes) - Parameters:
bytes
- can be negative if it was a reset event.
-
getRequestContentLength
public long getRequestContentLength() -
addRequestContentLength
public void addRequestContentLength(long contentLength) -
getRequestBytesTransferred
public long getRequestBytesTransferred() -
getResponseContentLength
public long getResponseContentLength() -
addResponseContentLength
public void addResponseContentLength(long contentLength) -
getResponseBytesTransferred
public long getResponseBytesTransferred()
-