public interface AsyncRequestProducer extends AsyncDataProducer
| Modifier and Type | Method and Description |
|---|---|
void |
failed(Exception cause)
Triggered to signal a failure in data generation.
|
boolean |
isRepeatable()
Tests whether the producer can consistently produce the same content
after invocation of
ResourceHolder.releaseResources(). |
void |
sendRequest(RequestChannel channel,
HttpContext context)
Triggered to signal the ability of the underlying request channel
to accept a request messages.
|
available, producereleaseResourcesvoid sendRequest(RequestChannel channel, HttpContext context) throws HttpException, IOException
channel - the request channel capable to accepting a request message.context - the actual execution context.HttpException - in case of an HTTP protocol violation.IOException - in case of an I/O error.boolean isRepeatable()
ResourceHolder.releaseResources().void failed(Exception cause)
cause - the cause of the failure.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.