Top Fields Constructors Methods
org.apache.http.impl.execchain

public Class BackoffStrategyExec

extends Object
implements ClientExecChain
Class Inheritance
All Implemented Interfaces
org.apache.http.impl.execchain.ClientExecChain
Annotations
@Contract
threading:IMMUTABLE_CONDITIONAL
Imports
java.io.IOException, java.lang.reflect.UndeclaredThrowableException, org.apache.http.HttpException, org.apache.http.annotation.Contract, .ThreadingBehavior, org.apache.http.client.BackoffManager, .ConnectionBackoffStrategy, org.apache.http.client.methods.CloseableHttpResponse, .HttpExecutionAware, .HttpRequestWrapper, org.apache.http.client.protocol.HttpClientContext, org.apache.http.conn.routing.HttpRoute, org.apache.http.util.Args

Since
4.3

Field Summary

Modifier and TypeField and Description
private final BackoffManager
private final ConnectionBackoffStrategy
private final ClientExecChain

Constructor Summary

AccessConstructor and Description
public
BackoffStrategyExec(final ClientExecChain requestExecutor, final ConnectionBackoffStrategy connectionBackoffStrategy, final BackoffManager backoffManager)

Method Summary

Modifier and TypeMethod and Description
public CloseableHttpResponse
execute(final HttpRoute
connection route.
route
,
final HttpRequestWrapper
current request.
request
,
final HttpClientContext
current HTTP context.
context
,
final HttpExecutionAware
receiver of notifications of blocking I/O operations.
execAware
)

Implements org.apache.http.impl.execchain.ClientExecChain.execute.

Executes th request either by transmitting it to the target server or by passing it onto the next executor in the request execution chain.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

backoffManagerback to summary
private final BackoffManager backoffManager
connectionBackoffStrategyback to summary
private final ConnectionBackoffStrategy connectionBackoffStrategy
requestExecutorback to summary
private final ClientExecChain requestExecutor

Constructor Detail

BackoffStrategyExecback to summary
public BackoffStrategyExec(final ClientExecChain requestExecutor, final ConnectionBackoffStrategy connectionBackoffStrategy, final BackoffManager backoffManager)

Method Detail

executeback to summary
public CloseableHttpResponse execute(final HttpRoute route, final HttpRequestWrapper request, final HttpClientContext context, final HttpExecutionAware execAware) throws IOException, HttpException

Implements org.apache.http.impl.execchain.ClientExecChain.execute.

Doc from org.apache.http.impl.execchain.ClientExecChain.execute.

Executes th request either by transmitting it to the target server or by passing it onto the next executor in the request execution chain.

Parameters
route:HttpRoute

connection route.

request:HttpRequestWrapper

current request.

context:HttpClientContext

current HTTP context.

execAware:HttpExecutionAware

receiver of notifications of blocking I/O operations.

Returns:CloseableHttpResponse

HTTP response either received from the opposite endpoint or generated locally.

Annotations
@Override
Exceptions
IOException:
in case of a I/O error. (this type of exceptions are potentially recoverable).
HttpException:
in case of an HTTP protocol error (usually this type of exceptions are non-recoverable).