Package org.apache.hc.core5.http.nio
Interface AsyncPushConsumer
-
- All Superinterfaces:
AsyncDataConsumer
,ResourceHolder
- All Known Implementing Classes:
AbstractAsyncPushHandler
,NoopAsyncPushHandler
public interface AsyncPushConsumer extends AsyncDataConsumer
Abstract asynchronous push response consumer.- Since:
- 5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
consumePromise(HttpRequest promise, HttpResponse response, EntityDetails entityDetails, HttpContext context)
Triggered to signal receipt of a request message head used as a promise and the corresponding pushed response.void
failed(java.lang.Exception cause)
Triggered to signal a failure in data processing.-
Methods inherited from interface org.apache.hc.core5.http.nio.AsyncDataConsumer
consume, streamEnd, updateCapacity
-
Methods inherited from interface org.apache.hc.core5.http.nio.ResourceHolder
releaseResources
-
-
-
-
Method Detail
-
consumePromise
void consumePromise(HttpRequest promise, HttpResponse response, EntityDetails entityDetails, HttpContext context) throws HttpException, java.io.IOException
Triggered to signal receipt of a request message head used as a promise and the corresponding pushed response.- Parameters:
promise
- the request message head used as a promise.response
- the pushed response message.entityDetails
- the response entity details ornull
if the response does not enclose an entity.context
- the actual execution context.- Throws:
HttpException
java.io.IOException
-
failed
void failed(java.lang.Exception cause)
Triggered to signal a failure in data processing.- Parameters:
cause
- the cause of the failure.
-
-