Class DelayedResponseLevelRetryHandler

java.lang.Object
ai.vespa.util.http.hc4.retry.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 Details

    • 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