Package com.contentful.java.cda
Class SyncQuery
- java.lang.Object
-
- com.contentful.java.cda.SyncQuery
-
public class SyncQuery extends java.lang.ObjectRepresents a query to the Sync API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SynchronizedSpacefetch()Invokes the request to sync (blocking).<C extends CDACallback<SynchronizedSpace>>
Cfetch(C callback)Invokes the request to sync (asynchronously) with the providedcallback.io.reactivex.rxjava3.core.Flowable<SynchronizedSpace>observe()Returns anFlowableto which one can subscribe in order to fulfill this sync query.
-
-
-
Method Detail
-
observe
public io.reactivex.rxjava3.core.Flowable<SynchronizedSpace> observe()
Returns anFlowableto which one can subscribe in order to fulfill this sync query.- Returns:
Flowableinstance.
-
fetch
public SynchronizedSpace fetch()
Invokes the request to sync (blocking).- Returns:
SynchronizedSpaceinstance.
-
fetch
public <C extends CDACallback<SynchronizedSpace>> C fetch(C callback)
Invokes the request to sync (asynchronously) with the providedcallback.- Type Parameters:
C- callback type.- Parameters:
callback- callback.- Returns:
- the given callback instance.
-
-