public interface AsyncPushProducer extends AsyncDataProducer
| 限定符和类型 | 方法和说明 |
|---|---|
void |
failed(Exception cause)
Triggered to signal a failure in data generation.
|
void |
produceResponse(ResponseChannel channel,
HttpContext context)
Triggered to signal the ability of the underlying response channel
to accept response messages.
|
available, producereleaseResourcesvoid produceResponse(ResponseChannel channel, HttpContext context) throws HttpException, IOException
channel - the response channel capable to accepting response messages.context - the actual execution context.HttpExceptionIOExceptionvoid failed(Exception cause)
cause - the cause of the failure.Copyright © 2023. All rights reserved.