Package ai.vespa.util.http.retry
Class DelayedResponseLevelRetryHandler
- java.lang.Object
-
- ai.vespa.util.http.retry.DelayedResponseLevelRetryHandler
-
- All Implemented Interfaces:
org.apache.http.client.ServiceUnavailableRetryStrategy
@Contract(threading=IMMUTABLE) public class DelayedResponseLevelRetryHandler extends java.lang.Object implements org.apache.http.client.ServiceUnavailableRetryStrategy
AServiceUnavailableRetryStrategy
that supports delayed retries on any response types.- Author:
- bjorncs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DelayedResponseLevelRetryHandler.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getRetryInterval()
boolean
retryRequest(org.apache.http.HttpResponse response, int executionCount, org.apache.http.protocol.HttpContext ctx)
-
-
-
Method Detail
-
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
-
-