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:
  • Field Details

    • NOOP

      public static final Progress 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()