Package io.realm.mongodb
Interface RealmEventStreamTask<T>
-
- Type Parameters:
T
- the result type delivered by this task.
- All Superinterfaces:
RealmAsyncTask
public interface RealmEventStreamTask<T> extends RealmAsyncTask
The RealmEventStreamTask is a specific version ofRealmAsyncTask
that provides a blocking mechanism to work with asynchronous operations carried out against MongoDB Realm that yield stream results.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
Methods inherited from interface io.realm.RealmAsyncTask
cancel, isCancelled
-
-
-
-
Method Detail
-
getNext
BaseChangeEvent<T> getNext() throws AppException, IOException
Blocks the thread on which the call is made until the result of the operation arrives.- Returns:
- the next event in the stream.
- Throws:
AppException
- if the server raises an errorIOException
- if something is wrong with the input stream
-
isOpen
boolean isOpen()
Whether or not the stream is currently open.- Returns:
- true if open, false if not.
-
-