public interface AsyncContentListener
AsyncContentProvider.| Modifier and Type | Method and Description |
|---|---|
void |
onContent(ByteBuffer content,
AsyncCallback callback)
Called by the
AsyncContentProvider when new chunk of data has arrived. |
void onContent(ByteBuffer content, AsyncCallback callback)
AsyncContentProvider when new chunk of data has arrived.content - The chunk of data.callback - The implementation of the function must call AsyncCallback.processed() to
notify the AsyncContentProvider that the next chunk of data can be pulled or
AsyncCallback.failed(Throwable) to notify the AsyncContentProvider
that the processing of the data is failed and no more data should be sent.Copyright © 2011–2019 Everit Kft.. All rights reserved.