Class ExponentialBackoffRetryHandler

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

    public class ExponentialBackoffRetryHandler
    extends Object
    implements org.apache.http.client.HttpRequestRetryHandler
    ExponentialBackoffRetryHandler provides implementation for Backoff Retry Strategy.
    • 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
      • retryRequestWithDelay

        public boolean retryRequestWithDelay​(int executionCount)
        Evaluates whether the request should be retried based on executionCount and adds a delay for scenarios where request should be retried.
        Parameters:
        executionCount - current attempt count