public class Rx2Apollo
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> io.reactivex.Observable<com.apollographql.apollo.api.Response<T>> |
from(com.apollographql.apollo.ApolloCall<T> call)
Converts an
ApolloCall to an Observable. |
static io.reactivex.Completable |
from(com.apollographql.apollo.ApolloPrefetch prefetch)
Converts an
ApolloPrefetch to a synchronous Completable |
static <T> io.reactivex.Observable<com.apollographql.apollo.api.Response<T>> |
from(com.apollographql.apollo.ApolloQueryWatcher<T> watcher)
Converts an
ApolloQueryWatcher to an asynchronous Observable. |
static <T> io.reactivex.Single<T> |
from(com.apollographql.apollo.cache.normalized.ApolloStoreOperation<T> operation)
Converts an
ApolloStoreOperation to a Single. |
static <T> io.reactivex.Flowable<com.apollographql.apollo.api.Response<T>> |
from(com.apollographql.apollo.ApolloSubscriptionCall<T> call) |
static <T> io.reactivex.Flowable<com.apollographql.apollo.api.Response<T>> |
from(com.apollographql.apollo.ApolloSubscriptionCall<T> call,
io.reactivex.BackpressureStrategy backpressureStrategy) |
@NotNull
@CheckReturnValue
public static <T> io.reactivex.Observable<com.apollographql.apollo.api.Response<T>> from(@NotNull
com.apollographql.apollo.ApolloQueryWatcher<T> watcher)
ApolloQueryWatcher to an asynchronous Observable.T - the value typewatcher - the ApolloQueryWatcher to convert.java.lang.NullPointerException - if watcher == null@NotNull
@CheckReturnValue
public static <T> io.reactivex.Observable<com.apollographql.apollo.api.Response<T>> from(@NotNull
com.apollographql.apollo.ApolloCall<T> call)
ApolloCall to an Observable. The number of emissions this Observable will have is based
on the ResponseFetcher used with the call.T - the value type.call - the ApolloCall to convertjava.lang.NullPointerException - if originalCall == null@NotNull
@CheckReturnValue
public static io.reactivex.Completable from(@NotNull
com.apollographql.apollo.ApolloPrefetch prefetch)
ApolloPrefetch to a synchronous Completableprefetch - the ApolloPrefetch to convertjava.lang.NullPointerException - if prefetch == null@NotNull
@CheckReturnValue
public static <T> io.reactivex.Flowable<com.apollographql.apollo.api.Response<T>> from(@NotNull
com.apollographql.apollo.ApolloSubscriptionCall<T> call)
@NotNull
@CheckReturnValue
public static <T> io.reactivex.Flowable<com.apollographql.apollo.api.Response<T>> from(@NotNull
com.apollographql.apollo.ApolloSubscriptionCall<T> call,
@NotNull
io.reactivex.BackpressureStrategy backpressureStrategy)
@NotNull
@CheckReturnValue
public static <T> io.reactivex.Single<T> from(@NotNull
com.apollographql.apollo.cache.normalized.ApolloStoreOperation<T> operation)
ApolloStoreOperation to a Single.T - the value typeoperation - the ApolloStoreOperation to convert