Package com.amazonaws.event.request
Class Progress
- java.lang.Object
-
- com.amazonaws.event.request.Progress
-
- Direct Known Subclasses:
ProgressSupport
public class Progress extends Object
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:
ProgressSupport
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProgress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRequestBytesTransferred(long bytes)voidaddRequestContentLength(long contentLength)voidaddResponseBytesTransferred(long bytes)voidaddResponseContentLength(long contentLength)longgetRequestBytesTransferred()longgetRequestContentLength()longgetResponseBytesTransferred()longgetResponseContentLength()booleanisEnabled()Returns true if progress tracking is enabled; false otherwise.
-
-
-
Field Detail
-
NOOP
public static final Progress NOOP
-
-
Method Detail
-
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()
-
-