Class ObserveQuery<T extends CDAResource>


  • public class ObserveQuery<T extends CDAResource>
    extends AbsQuery<T,​ObserveQuery<T>>
    Represents a query to the Delivery API which may be invoked via an Flowable subscription.

    Observable requests are subscribed and observed on the same thread that executed the request. Call Flowable.subscribeOn(io.reactivex.Scheduler) and Flowable.observeOn(io.reactivex.Scheduler) to control that.

    • Method Detail

      • one

        public io.reactivex.rxjava3.core.Flowable<T> one​(java.lang.String id)
        Observe a resource matching the given id.
        Parameters:
        id - resource id.
        Returns:
        Flowable instance.
        Throws:
        CDAResourceNotFoundException - if resource was not found.
      • all

        public io.reactivex.rxjava3.core.Flowable<CDAArray> all()
        Observe an array of all resources matching the type of this query.
        Returns:
        Flowable instance.