Uses of Class
io.objectbox.reactive.SubscriptionBuilder
Packages that use SubscriptionBuilder
Package
Description
ObjectBox is an an easy to use, object-oriented lightweight database and a full alternative to SQLite.
Classes to
configure
a DataSubscription for observing Box or Query changes.-
Uses of SubscriptionBuilder in io.objectbox
Methods in io.objectbox that return SubscriptionBuilderModifier and TypeMethodDescriptionBoxStore.subscribe()ADataObservercan be subscribed to data changes using the returned builder.<T> SubscriptionBuilder<Class<T>> 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 SubscriptionBuilderModifier and TypeMethodDescriptionQuery.subscribe()ADataObservercan be subscribed to data changes using the returned builder.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 SubscriptionBuilderModifier and TypeMethodDescriptionSubscriptionBuilder.dataSubscriptionList(DataSubscriptionList dataSubscriptionList) Changes the thread in which theDataObserver(and potentially @ErrorObserver) is called.SubscriptionBuilder.onError(ErrorObserver errorObserver) The givenErrorObserveris notified when theDataTransformer(transform(DataTransformer)) orDataObserver(observer(DataObserver)) threw an exception.SubscriptionBuilder.onlyChanges()Upon subscribing do not deliver the latest data, only once there are changes.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.weak()Uses a weak reference for the observer.