org.apache.http.impl.execchain
Class ServiceUnavailableRetryExec
java.lang.Object
org.apache.http.impl.execchain.ServiceUnavailableRetryExec
- All Implemented Interfaces:
- ClientExecChain
@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.
- Since:
- 4.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceUnavailableRetryExec
public ServiceUnavailableRetryExec(ClientExecChain requestExecutor,
ServiceUnavailableRetryStrategy retryStrategy)
execute
public CloseableHttpResponse execute(HttpRoute route,
HttpRequestWrapper request,
HttpClientContext context,
HttpExecutionAware execAware)
throws IOException,
HttpException
- Specified by:
execute
in interface ClientExecChain
- Throws:
IOException
HttpException
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.