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