public static final class RealApolloCall.Builder<T> extends java.lang.Object implements ApolloQueryCall.Builder<T>, ApolloMutationCall.Builder<T>
| Modifier and Type | Method and Description |
|---|---|
RealApolloCall.Builder<T> |
apolloStore(com.apollographql.apollo.cache.normalized.ApolloStore apolloStore) |
RealApolloCall.Builder<T> |
applicationInterceptorFactories(java.util.List<com.apollographql.apollo.interceptor.ApolloInterceptorFactory> applicationInterceptorFactories) |
RealApolloCall.Builder<T> |
applicationInterceptors(java.util.List<ApolloInterceptor> applicationInterceptors) |
RealApolloCall.Builder<T> |
autoPersistedOperationsInterceptorFactory(com.apollographql.apollo.interceptor.ApolloInterceptorFactory interceptorFactory) |
RealApolloCall<T> |
build() |
RealApolloCall.Builder<T> |
cacheHeaders(com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
Sets the
CacheHeaders to use for this call. |
RealApolloCall.Builder<T> |
dispatcher(java.util.concurrent.Executor dispatcher) |
RealApolloCall.Builder<T> |
enableAutoPersistedQueries(boolean enableAutoPersistedQueries) |
RealApolloCall.Builder<T> |
httpCache(com.apollographql.apollo.api.cache.http.HttpCache httpCache) |
RealApolloCall.Builder<T> |
httpCachePolicy(com.apollographql.apollo.api.cache.http.HttpCachePolicy.Policy httpCachePolicy)
Sets the http cache policy for response/request cache.
|
RealApolloCall.Builder<T> |
httpCallFactory(okhttp3.Call.Factory httpCallFactory) |
RealApolloCall.Builder<T> |
logger(com.apollographql.apollo.api.internal.ApolloLogger logger) |
RealApolloCall.Builder<T> |
operation(com.apollographql.apollo.api.Operation operation) |
RealApolloCall.Builder<T> |
optimisticUpdates(com.apollographql.apollo.api.internal.Optional<com.apollographql.apollo.api.Operation.Data> optimisticUpdates) |
RealApolloCall.Builder<T> |
refetchQueries(java.util.List<com.apollographql.apollo.api.Query> refetchQueries)
Sets a list of
Query to be re-fetched once this mutation completed. |
RealApolloCall.Builder<T> |
refetchQueryNames(java.util.List<com.apollographql.apollo.api.OperationName> refetchQueryNames)
Sets a list of
ApolloQueryWatcher query names to be re-fetched once this mutation completed. |
RealApolloCall.Builder<T> |
requestHeaders(RequestHeaders requestHeaders)
Sets the
RequestHeaders to use for this call. |
RealApolloCall.Builder<T> |
responseFetcher(ResponseFetcher responseFetcher)
Sets the
ResponseFetcher strategy for an ApolloCall object. |
RealApolloCall.Builder<T> |
responseFieldMapperFactory(ResponseFieldMapperFactory responseFieldMapperFactory) |
RealApolloCall.Builder<T> |
scalarTypeAdapters(com.apollographql.apollo.api.ScalarTypeAdapters scalarTypeAdapters) |
RealApolloCall.Builder<T> |
serverUrl(okhttp3.HttpUrl serverUrl) |
RealApolloCall.Builder<T> |
tracker(ApolloCallTracker tracker) |
RealApolloCall.Builder<T> |
useHttpGetMethodForPersistedQueries(boolean useHttpGetMethodForPersistedQueries) |
RealApolloCall.Builder<T> |
useHttpGetMethodForQueries(boolean useHttpGetMethodForQueries) |
RealApolloCall.Builder<T> |
writeToNormalizedCacheAsynchronously(boolean writeToNormalizedCacheAsynchronously) |
public RealApolloCall.Builder<T> operation(com.apollographql.apollo.api.Operation operation)
public RealApolloCall.Builder<T> serverUrl(okhttp3.HttpUrl serverUrl)
public RealApolloCall.Builder<T> httpCallFactory(okhttp3.Call.Factory httpCallFactory)
public RealApolloCall.Builder<T> httpCache(com.apollographql.apollo.api.cache.http.HttpCache httpCache)
public RealApolloCall.Builder<T> responseFieldMapperFactory(ResponseFieldMapperFactory responseFieldMapperFactory)
public RealApolloCall.Builder<T> scalarTypeAdapters(com.apollographql.apollo.api.ScalarTypeAdapters scalarTypeAdapters)
public RealApolloCall.Builder<T> apolloStore(com.apollographql.apollo.cache.normalized.ApolloStore apolloStore)
@NotNull public RealApolloCall.Builder<T> cacheHeaders(@NotNull com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
ApolloQueryCall.BuilderCacheHeaders to use for this call. com.apollographql.apollo.interceptor.FetchOptions will
be configured with this headers, and will be accessible from the ResponseFetcher used for this call.cacheHeaders in interface ApolloCall.Builder<T>cacheHeaders in interface ApolloMutationCall.Builder<T>cacheHeaders in interface ApolloQueryCall.Builder<T>cacheHeaders - the CacheHeaders that will be passed with records generated from this request to NormalizedCache. Standardized cache headers are
defined in ApolloCacheHeaders.CacheHeaders.@NotNull public RealApolloCall.Builder<T> httpCachePolicy(@NotNull com.apollographql.apollo.api.cache.http.HttpCachePolicy.Policy httpCachePolicy)
ApolloQueryCall.BuilderhttpCachePolicy in interface ApolloQueryCall.Builder<T>httpCachePolicy - HttpCachePolicy.Policy to setApolloQueryCall with the provided HttpCachePolicy.Policy@NotNull public RealApolloCall.Builder<T> responseFetcher(@NotNull ResponseFetcher responseFetcher)
ApolloQueryCall.BuilderResponseFetcher strategy for an ApolloCall object.responseFetcher in interface ApolloQueryCall.Builder<T>responseFetcher - the ResponseFetcher to use.@NotNull public RealApolloCall.Builder<T> requestHeaders(@NotNull RequestHeaders requestHeaders)
ApolloQueryCall.BuilderRequestHeaders to use for this call. These headers will be added to the HTTP request when
it is issued. These headers will be applied after any headers applied by application-level interceptors
and will override those if necessary.requestHeaders in interface ApolloMutationCall.Builder<T>requestHeaders in interface ApolloQueryCall.Builder<T>requestHeaders - The RequestHeaders to use for this request.@NotNull public RealApolloCall.Builder<T> refetchQueryNames(@NotNull java.util.List<com.apollographql.apollo.api.OperationName> refetchQueryNames)
ApolloMutationCall.BuilderSets a list of ApolloQueryWatcher query names to be re-fetched once this mutation completed.
refetchQueryNames in interface ApolloMutationCall.Builder<T>refetchQueryNames - array of OperationName query names to be re-fetched@NotNull public RealApolloCall.Builder<T> refetchQueries(@NotNull java.util.List<com.apollographql.apollo.api.Query> refetchQueries)
ApolloMutationCall.BuilderSets a list of Query to be re-fetched once this mutation completed.
refetchQueries in interface ApolloMutationCall.Builder<T>refetchQueries - array of Query to be re-fetchedpublic RealApolloCall.Builder<T> dispatcher(java.util.concurrent.Executor dispatcher)
public RealApolloCall.Builder<T> logger(com.apollographql.apollo.api.internal.ApolloLogger logger)
public RealApolloCall.Builder<T> tracker(ApolloCallTracker tracker)
public RealApolloCall.Builder<T> applicationInterceptors(java.util.List<ApolloInterceptor> applicationInterceptors)
public RealApolloCall.Builder<T> applicationInterceptorFactories(java.util.List<com.apollographql.apollo.interceptor.ApolloInterceptorFactory> applicationInterceptorFactories)
public RealApolloCall.Builder<T> autoPersistedOperationsInterceptorFactory(com.apollographql.apollo.interceptor.ApolloInterceptorFactory interceptorFactory)
public RealApolloCall.Builder<T> enableAutoPersistedQueries(boolean enableAutoPersistedQueries)
public RealApolloCall.Builder<T> optimisticUpdates(com.apollographql.apollo.api.internal.Optional<com.apollographql.apollo.api.Operation.Data> optimisticUpdates)
public RealApolloCall.Builder<T> useHttpGetMethodForQueries(boolean useHttpGetMethodForQueries)
public RealApolloCall.Builder<T> useHttpGetMethodForPersistedQueries(boolean useHttpGetMethodForPersistedQueries)
public RealApolloCall.Builder<T> writeToNormalizedCacheAsynchronously(boolean writeToNormalizedCacheAsynchronously)
@NotNull public RealApolloCall<T> build()
build in interface ApolloCall.Builder<T>build in interface ApolloMutationCall.Builder<T>build in interface ApolloQueryCall.Builder<T>