Class DelayedResponseLevelRetryHandler

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

    @Contract(threading=IMMUTABLE)
    public class DelayedResponseLevelRetryHandler
    extends Object
    implements org.apache.http.client.ServiceUnavailableRetryStrategy
    A ServiceUnavailableRetryStrategy that supports delayed retries on any response types.
    Author:
    bjorncs
    • Method Detail

      • retryRequest

        public boolean retryRequest​(org.apache.http.HttpResponse response,
                                    int executionCount,
                                    org.apache.http.protocol.HttpContext ctx)
        Specified by:
        retryRequest in interface org.apache.http.client.ServiceUnavailableRetryStrategy
      • getRetryInterval

        public long getRetryInterval()
        Specified by:
        getRetryInterval in interface org.apache.http.client.ServiceUnavailableRetryStrategy