T
- the future result type returned for callbacks.public interface AsyncRequestConsumer<T> extends AsyncDataConsumer
Modifier and Type | Method and Description |
---|---|
void |
consumeRequest(HttpRequest request,
EntityDetails entityDetails,
HttpContext context,
FutureCallback<T> resultCallback)
Triggered to signal receipt of a request message head.
|
void |
failed(Exception cause)
Triggered to signal a failure in data processing.
|
consume, streamEnd, updateCapacity
releaseResources
void consumeRequest(HttpRequest request, EntityDetails entityDetails, HttpContext context, FutureCallback<T> resultCallback) throws HttpException, IOException
request
- the request message head.entityDetails
- the request entity details or null
if the request
does not enclose an entity.context
- the actual execution context.resultCallback
- the result callback called when request processing
has been completed successfully or unsuccessfully.HttpException
- in case of an HTTP protocol violation.IOException
- in case of an I/O error.void failed(Exception cause)
cause
- the cause of the failure.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.