Class CustomHttpRequestRetryHandler

  • All Implemented Interfaces:
    org.apache.http.client.HttpRequestRetryHandler

    public class CustomHttpRequestRetryHandler
    extends Object
    implements org.apache.http.client.HttpRequestRetryHandler
    Calls will retry the call when the client throws a NoHttpResponseException. This is usually the case when there is steal connection. The retry cause that the connection is renewed and the second call will succeed.
    • Constructor Detail

      • CustomHttpRequestRetryHandler

        public CustomHttpRequestRetryHandler​(Logger logger)
    • Method Detail

      • retryRequest

        public boolean retryRequest​(IOException exception,
                                    int executionCount,
                                    org.apache.http.protocol.HttpContext context)
        Specified by:
        retryRequest in interface org.apache.http.client.HttpRequestRetryHandler