public final class AsyncHttpRequestRetryExec extends java.lang.Object implements AsyncExecChainHandler
HttpRequestRetryStrategy#getRetryInterval(HttpResponse, int, org.apache.hc.core5.http.protocol.HttpContext).
Further responsibilities such as communication with the opposite endpoint is delegated to the next executor in the request execution chain.
| Constructor and Description |
|---|
AsyncHttpRequestRetryExec(HttpRequestRetryStrategy retryStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(HttpRequest request,
AsyncEntityProducer entityProducer,
AsyncExecChain.Scope scope,
AsyncExecChain chain,
AsyncExecCallback asyncExecCallback)
Executes the actual HTTP request.
|
public AsyncHttpRequestRetryExec(HttpRequestRetryStrategy retryStrategy)
public void execute(HttpRequest request,
AsyncEntityProducer entityProducer,
AsyncExecChain.Scope scope,
AsyncExecChain chain,
AsyncExecCallback asyncExecCallback)
throws HttpException,
java.io.IOException
AsyncExecChainHandlerexecute in interface AsyncExecChainHandlerrequest - the actual request.entityProducer - the request entity producer or null if the request
does not enclose an entity.scope - the execution scope .chain - the next element in the request execution chain.asyncExecCallback - the execution callback.HttpExceptionjava.io.IOException