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
null
if the entity is still being received. |
void |
streamStart(EntityDetails entityDetails,
FutureCallback<T> resultCallback)
Signals beginning of an incoming request entity stream.
|
consume, streamEnd, updateCapacity
releaseResources
void streamStart(EntityDetails entityDetails, FutureCallback<T> resultCallback) throws HttpException, IOException
entityDetails
- the details of the incoming message entity.resultCallback
- the result callback.HttpException
IOException
void failed(Exception cause)
cause
- the cause of the failure.T getContent()
null
if the entity is still being received.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.