@Contract(threading=STATELESS) public interface AsyncExecChainHandler
For information regarding the handler chain behaviour in case of a request re-execution,
please refer to the AsyncHttpRequestRetryExec javadoc.
Well known request execution handlers could be referred to by name using one of the
ChainElement enum values.
ChainElement,
HttpAsyncClientBuilder.addExecInterceptorFirst(String, AsyncExecChainHandler),
HttpAsyncClientBuilder.addExecInterceptorBefore(String, String, AsyncExecChainHandler),
HttpAsyncClientBuilder.addExecInterceptorAfter(String, String, AsyncExecChainHandler),
HttpAsyncClientBuilder.addExecInterceptorLast(String, AsyncExecChainHandler)| 限定符和类型 | 方法和说明 |
|---|---|
void |
execute(HttpRequest request,
AsyncEntityProducer entityProducer,
AsyncExecChain.Scope scope,
AsyncExecChain chain,
AsyncExecCallback asyncExecCallback)
Executes the actual HTTP request.
|
void execute(HttpRequest request, AsyncEntityProducer entityProducer, AsyncExecChain.Scope scope, AsyncExecChain chain, AsyncExecCallback asyncExecCallback) throws HttpException, IOException
request - 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.HttpExceptionIOExceptionCopyright © 2023. All rights reserved.