Class RestRetryHandler

    • Constructor Detail

      • RestRetryHandler

        public RestRetryHandler()
      • RestRetryHandler

        public RestRetryHandler​(int maxRetries)
    • Method Detail

      • retryRequest

        public boolean retryRequest​(IOException exception,
                                    int executionCount,
                                    HttpContext context)
        Specified by:
        retryRequest in interface HttpRequestRetryHandler
        Parameters:
        exception - failureReason
        executionCount - number of retries executed
        context - HttpContext generated for request
        Returns:
        Returns true if the Exception is of HttpAuthenticationException and the maxRetries <= 2. returns false otherwise.