Package ai.vespa.util.http.hc4.retry
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
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
boolean
retryRequest
(org.apache.http.HttpResponse response, int executionCount, org.apache.http.protocol.HttpContext ctx)
-
Method Details
-
retryRequest
public boolean retryRequest(org.apache.http.HttpResponse response, int executionCount, org.apache.http.protocol.HttpContext ctx) - Specified by:
retryRequest
in interfaceorg.apache.http.client.ServiceUnavailableRetryStrategy
-
getRetryInterval
public long getRetryInterval()- Specified by:
getRetryInterval
in interfaceorg.apache.http.client.ServiceUnavailableRetryStrategy
-