@Immutable public class ServiceUnavailableRetryExec extends Object implements ClientExecChain
ClientExecChain
implementation that can automatically retry the request in case of
a non-2xx response using the ServiceUnavailableRetryStrategy
interface.Constructor and Description |
---|
ServiceUnavailableRetryExec(ClientExecChain requestExecutor,
ServiceUnavailableRetryStrategy retryStrategy) |
Modifier and Type | Method and Description |
---|---|
CloseableHttpResponse |
execute(HttpRoute route,
HttpRequestWrapper request,
HttpClientContext context,
HttpExecutionAware execAware) |
public ServiceUnavailableRetryExec(ClientExecChain requestExecutor, ServiceUnavailableRetryStrategy retryStrategy)
public CloseableHttpResponse execute(HttpRoute route, HttpRequestWrapper request, HttpClientContext context, HttpExecutionAware execAware) throws IOException, HttpException
execute
in interface ClientExecChain
IOException
HttpException
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.