Package org.apache.hc.client5.http.async
Interface AsyncExecChain
-
@Contract(threading=STATELESS) public interface AsyncExecChain
Represents a single element in the client side asynchronous request execution chain.- Since:
- 5.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AsyncExecChain.Scheduler
Request execution schedulerstatic class
AsyncExecChain.Scope
Request execution scope that includes the unique message exchange ID, the connection route, the original request message, the execution context and the internal execution runtime.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
proceed(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.nio.AsyncEntityProducer entityProducer, AsyncExecChain.Scope scope, AsyncExecCallback asyncExecCallback)
Proceeds to the next element in the request execution chain.
-
-
-
Method Detail
-
proceed
void proceed(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.nio.AsyncEntityProducer entityProducer, AsyncExecChain.Scope scope, AsyncExecCallback asyncExecCallback) throws org.apache.hc.core5.http.HttpException, java.io.IOException
Proceeds to the next element in the request execution chain.- Parameters:
request
- the actual request.entityProducer
- the request entity producer ornull
if the request does not enclose an entity.scope
- the execution scope .asyncExecCallback
- the execution callback.- Throws:
org.apache.hc.core5.http.HttpException
java.io.IOException
-
-