@Deprecated public final class NoopEntityConsumer extends Object implements AsyncEntityConsumer<Void>
AsyncEntityConsumer that discards all data from the data stream.| Constructor and Description | 
|---|
| NoopEntityConsumer()Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| void | consume(ByteBuffer src)Deprecated.  Triggered to pass incoming data to the data consumer. | 
| void | failed(Exception cause)Deprecated.  Triggered to signal a failure in data processing. | 
| Void | getContent()Deprecated.  Returns the result of entity processing when it becomes available or  nullif the entity is still being received. | 
| void | releaseResources()Deprecated.  | 
| void | streamEnd(List<? extends Header> trailers)Deprecated.  Triggered to signal termination of the data stream. | 
| void | streamStart(EntityDetails entityDetails,
           FutureCallback<Void> resultCallback)Deprecated.  Signals beginning of an incoming request entity stream. | 
| void | updateCapacity(CapacityChannel capacityChannel)Deprecated.  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 in interface AsyncEntityConsumer<Void>entityDetails - the details of the incoming message entity.resultCallback - the result callback.IOException - in case of an I/O error.HttpException - in case of an HTTP protocol violation.public void updateCapacity(CapacityChannel capacityChannel) throws IOException
AsyncDataConsumerupdateCapacity in interface AsyncDataConsumercapacityChannel - the channel for capacity updates.IOException - in case of an I/O error.public void consume(ByteBuffer src) throws IOException
AsyncDataConsumerconsume in interface AsyncDataConsumersrc - data source.IOException - in case of an I/O error.public void streamEnd(List<? extends Header> trailers) throws IOException
AsyncDataConsumerstreamEnd in interface AsyncDataConsumertrailers - data stream trailers.IOException - in case of an I/O error.public void failed(Exception cause)
AsyncEntityConsumerfailed in interface AsyncEntityConsumer<Void>cause - the cause of the failure.public Void getContent()
AsyncEntityConsumernull
 if the entity is still being received.getContent in interface AsyncEntityConsumer<Void>public void releaseResources()
releaseResources in interface ResourceHolderCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.