T - the result type delivered by this task.public interface RealmEventStreamAsyncTask<T> extends RealmAsyncTask
RealmAsyncTask that provides a non-blocking mechanism
to work with asynchronous operations carried out against MongoDB Realm that yield stream results.| Modifier and Type | Method and Description |
|---|---|
void |
get(App.Callback<BaseChangeEvent<T>> callback)
Provides a way to subscribe to asynchronous operations via a callback, which handles both
results and errors.
|
boolean |
isOpen()
Whether or not the stream is currently open.
|
cancel, isCancelledvoid get(App.Callback<BaseChangeEvent<T>> callback) throws IllegalStateException
callback - the App.Callback designed to receive event results.IllegalStateException - if the stream is already open.boolean isOpen()