@API.Public public interface DocumentListener
|Modifier and Type||Method and Description|
Called when a Document from the
Called when the end of the document stream is reached.
Called when an
boolean documentArrived(@API.NonNullable Document document)
DocumentStreamis available for consumption.
document- the available
falseto stop listening for more documents at which point the stream is closed
void failed(@API.NonNullable Exception e)
Exceptionoccurs while retrieving a Document. The
DocumentListenerwill be closed and no new document will be returned.
e- the exception that describes the failure
Copyright © 2015–2017 MapR Technologies, Inc.. All rights reserved.