Class 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
    • Field Detail

      • NOOP

        public static final Progress NOOP
    • Constructor Detail

      • Progress

        protected Progress()
    • 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()