Uses of Class
io.objectbox.reactive.SubscriptionBuilder
-
Packages that use SubscriptionBuilder Package Description io.objectbox ObjectBox is an an easy to use, object-oriented lightweight database and a full alternative to SQLite.io.objectbox.query io.objectbox.reactive Classes toconfigureaDataSubscriptionfor observing Box or Query changes. -
-
Uses of SubscriptionBuilder in io.objectbox
Methods in io.objectbox that return SubscriptionBuilder Modifier and Type Method Description SubscriptionBuilder<java.lang.Class>BoxStore. subscribe()ADataObservercan be subscribed to data changes using the returned builder.<T> SubscriptionBuilder<java.lang.Class<T>>BoxStore. subscribe(java.lang.Class<T> forClass)LikeBoxStore.subscribe(), but wires the supplied @DataObserveronly to the given object class for notifications. -
Uses of SubscriptionBuilder in io.objectbox.query
Methods in io.objectbox.query that return SubscriptionBuilder Modifier and Type Method Description SubscriptionBuilder<java.util.List<T>>Query. subscribe()ADataObservercan be subscribed to data changes using the returned builder.SubscriptionBuilder<java.util.List<T>>Query. subscribe(DataSubscriptionList dataSubscriptionList)Convenience forQuery.subscribe()with a subsequent call todataSubscriptionList(DataSubscriptionList). -
Uses of SubscriptionBuilder in io.objectbox.reactive
Methods in io.objectbox.reactive that return SubscriptionBuilder Modifier and Type Method Description SubscriptionBuilder<T>SubscriptionBuilder. dataSubscriptionList(DataSubscriptionList dataSubscriptionList)SubscriptionBuilder<T>SubscriptionBuilder. on(Scheduler scheduler)Changes the thread in which theDataObserver(and potentially @ErrorObserver) is called.SubscriptionBuilder<T>SubscriptionBuilder. onError(ErrorObserver errorObserver)The givenErrorObserveris notified when theDataTransformer(transform(DataTransformer)) orDataObserver(observer(DataObserver)) threw an exception.SubscriptionBuilder<T>SubscriptionBuilder. onlyChanges()Upon subscribing do not deliver the latest data, only once there are changes.SubscriptionBuilder<T>SubscriptionBuilder. single()Only deliver the latest data once, do not subscribe for data changes.<TO> SubscriptionBuilder<TO>SubscriptionBuilder. transform(DataTransformer<T,TO> transformer)Transforms the original data from the publisher to some other type.SubscriptionBuilder<T>SubscriptionBuilder. weak()Uses a weak reference for the observer.
-