Package io.realm.mongodb
Interface RealmEventStreamAsyncTask<T>
-
- Type Parameters:
T- the result type delivered by this task.
- All Superinterfaces:
RealmAsyncTask
public interface RealmEventStreamAsyncTask<T> extends RealmAsyncTask
The RealmEventStreamAsyncTask is a specific version ofRealmAsyncTaskthat provides a non-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 voidget(App.Callback<BaseChangeEvent<T>> callback)Provides a way to subscribe to asynchronous operations via a callback, which handles both results and errors.booleanisOpen()Whether or not the stream is currently open.-
Methods inherited from interface io.realm.RealmAsyncTask
cancel, isCancelled
-
-
-
-
Method Detail
-
get
void get(App.Callback<BaseChangeEvent<T>> callback) throws IllegalStateException
Provides a way to subscribe to asynchronous operations via a callback, which handles both results and errors.- Parameters:
callback- theApp.Callbackdesigned to receive event results.- Throws:
IllegalStateException- if the stream is already open.
-
isOpen
boolean isOpen()
Whether or not the stream is currently open.- Returns:
- true if open, false if not.
-
-