@Contract(threading=IMMUTABLE_CONDITIONAL) public class BackoffStrategyExec extends Object implements ClientExecChain
| Constructor and Description |
|---|
BackoffStrategyExec(ClientExecChain requestExecutor, ConnectionBackoffStrategy connectionBackoffStrategy, BackoffManager backoffManager) |
| Modifier and Type | Method and Description |
|---|---|
CloseableHttpResponse |
execute(HttpRoute route, HttpRequestWrapper request, HttpClientContext context, HttpExecutionAware execAware)
通过将请求发送到目标服务器或将其传递到请求执行链中的下一个执行程序来执行请求。
|
public BackoffStrategyExec(ClientExecChain requestExecutor, ConnectionBackoffStrategy connectionBackoffStrategy, BackoffManager backoffManager)
public CloseableHttpResponse execute(HttpRoute route, HttpRequestWrapper request, HttpClientContext context, HttpExecutionAware execAware) throws IOException, HttpException
ClientExecChain复制
execute在界面
ClientExecChain
route - 连接路由。
request - 当前请求。
context - 当前的HTTP上下文。
execAware - 阻止I / O操作的通知的接收者。
IOException - 在出现I / O错误的情况下。
(这种类型的异常是潜在的可恢复的)。
HttpException - in case of an HTTP protocol error (usually this type of exceptions are non-recoverable).
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.