Interface MethodRetryHandler

    • Method Detail

      • retryMethod

        boolean retryMethod​(HttpMethod method,
                            HttpConnection connection,
                            HttpRecoverableException recoverableException,
                            int executionCount,
                            boolean requestSent)
        Determines if a method should be retried after an HttpRecoverableException occurs during execution.
        method - the method being executed
        connection - the connection the method is using
        recoverableException - the exception that occurred
        executionCount - the number of times this method has been unsuccessfully executed
        requestSent - this argument is unused and will be removed in the future. HttpMethod.isRequestSent() should be used instead
        true if the method should be retried, false otherwise