T - entity representation.public interface AsyncEntityConsumer<T> extends AsyncDataConsumer
| Modifier and Type | Method and Description | 
|---|---|
| void | failed(Exception cause)Triggered to signal a failure in data processing. | 
| T | getContent()Returns the result of entity processing when it becomes available or  nullif the entity is still being received. | 
| void | streamStart(EntityDetails entityDetails,
           FutureCallback<T> resultCallback)Signals beginning of an incoming request entity stream. | 
consume, streamEnd, updateCapacityreleaseResourcesvoid streamStart(EntityDetails entityDetails, FutureCallback<T> resultCallback) throws HttpException, IOException
entityDetails - the details of the incoming message entity.resultCallback - the result callback.HttpExceptionIOExceptionvoid failed(Exception cause)
cause - the cause of the failure.T getContent()
null
 if the entity is still being received.Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.