public interface AsyncPushConsumer extends AsyncDataConsumer
Modifier and Type | Method and 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(Exception cause)
Triggered to signal a failure in data processing.
|
consume, streamEnd, updateCapacity
releaseResources
void consumePromise(HttpRequest promise, HttpResponse response, EntityDetails entityDetails, HttpContext context) throws HttpException, IOException
promise
- the request message head used as a promise.response
- the pushed response message.entityDetails
- the response entity details or null
if the response
does not enclose an entity.context
- the actual execution context.HttpException
IOException
void failed(Exception cause)
cause
- the cause of the failure.Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.