public class ObserveQuery<T extends CDAResource> extends AbsQuery<T,ObserveQuery<T>>
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.
Modifier and Type | Method and Description |
---|---|
io.reactivex.Flowable<CDAArray> |
all()
Observe an array of all resources matching the type of this query.
|
io.reactivex.Flowable<T> |
one(java.lang.String id)
Observe a resource matching the given
id . |
include, limit, linksToAssetId, linksToEntryId, orderBy, orderBy, reverseOrderBy, select, select, skip, where, where, withContentType
public io.reactivex.Flowable<T> one(java.lang.String id)
id
.id
- resource id.Flowable
instance.CDAResourceNotFoundException
- if resource was not found.public io.reactivex.Flowable<CDAArray> all()
Flowable
instance.Copyright © 2019 Contentful, GmbH.. All Rights Reserved.