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.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) |
public static <T> io.reactivex.Observable<com.apollographql.apollo.api.Response<T>> from(@Nonnull
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@Nonnull
public static <T> io.reactivex.Observable<com.apollographql.apollo.api.Response<T>> from(@Nonnull
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@Nonnull
public static io.reactivex.Completable from(@Nonnull
com.apollographql.apollo.ApolloPrefetch prefetch)
ApolloPrefetch to a synchronous Completableprefetch - the ApolloPrefetch to convertjava.lang.NullPointerException - if prefetch == null@Nonnull
public static <T> io.reactivex.Flowable<com.apollographql.apollo.api.Response<T>> from(@Nonnull
com.apollographql.apollo.ApolloSubscriptionCall<T> call)
@Nonnull
public static <T> io.reactivex.Flowable<com.apollographql.apollo.api.Response<T>> from(@Nonnull
com.apollographql.apollo.ApolloSubscriptionCall<T> call,
@Nonnull
io.reactivex.BackpressureStrategy backpressureStrategy)