T
- the result type delivered by this task.public interface RealmEventStreamTask<T> extends RealmAsyncTask
RealmAsyncTask
that provides a blocking mechanism
to work with asynchronous operations carried out against MongoDB Realm that yield stream results.Modifier and Type | Method and Description |
---|---|
BaseChangeEvent<T> |
getNext()
Blocks the thread on which the call is made until the result of the operation arrives.
|
boolean |
isOpen()
Whether or not the stream is currently open.
|
cancel, isCancelled
BaseChangeEvent<T> getNext() throws AppException, IOException
AppException
- if the server raises an errorIOException
- if something is wrong with the input streamboolean isOpen()