@Deprecated public final class NoopEntityConsumer extends Object implements AsyncEntityConsumer<Void>
AsyncEntityConsumer that discards all data from the data stream.| 构造器和说明 |
|---|
NoopEntityConsumer()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
consume(ByteBuffer src)
已过时。
Triggered to pass incoming data to the data consumer.
|
void |
failed(Exception cause)
已过时。
Triggered to signal a failure in data processing.
|
Void |
getContent()
已过时。
Returns the result of entity processing when it becomes available or
null
if the entity is still being received. |
void |
releaseResources()
已过时。
|
void |
streamEnd(List<? extends Header> trailers)
已过时。
Triggered to signal termination of the data stream.
|
void |
streamStart(EntityDetails entityDetails,
FutureCallback<Void> resultCallback)
已过时。
Signals beginning of an incoming request entity stream.
|
void |
updateCapacity(CapacityChannel capacityChannel)
已过时。
Triggered to signal ability of the underlying data stream to receive
data capacity update.
|
public void streamStart(EntityDetails entityDetails, FutureCallback<Void> resultCallback) throws IOException, HttpException
AsyncEntityConsumerstreamStart 在接口中 AsyncEntityConsumer<Void>entityDetails - the details of the incoming message entity.resultCallback - the result callback.IOExceptionHttpExceptionpublic void updateCapacity(CapacityChannel capacityChannel) throws IOException
AsyncDataConsumerupdateCapacity 在接口中 AsyncDataConsumercapacityChannel - the channel for capacity updates.IOExceptionpublic void consume(ByteBuffer src) throws IOException
AsyncDataConsumerconsume 在接口中 AsyncDataConsumersrc - data source.IOExceptionpublic void streamEnd(List<? extends Header> trailers) throws IOException
AsyncDataConsumerstreamEnd 在接口中 AsyncDataConsumertrailers - data stream trailers.IOExceptionpublic void failed(Exception cause)
AsyncEntityConsumerfailed 在接口中 AsyncEntityConsumer<Void>cause - the cause of the failure.public Void getContent()
AsyncEntityConsumernull
if the entity is still being received.getContent 在接口中 AsyncEntityConsumer<Void>public void releaseResources()
releaseResources 在接口中 ResourceHolderCopyright © 2023. All rights reserved.