public static interface ApolloQueryCall.Builder<T> extends ApolloCall.Builder<T>
| Modifier and Type | Method and Description |
|---|---|
ApolloQueryCall<T> |
build() |
ApolloQueryCall.Builder<T> |
cacheHeaders(com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
Sets the
CacheHeaders to use for this call. |
ApolloQueryCall.Builder<T> |
httpCachePolicy(com.apollographql.apollo.api.cache.http.HttpCachePolicy.Policy httpCachePolicy)
Sets the http cache policy for response/request cache.
|
ApolloQueryCall.Builder<T> |
requestHeaders(RequestHeaders requestHeaders)
Sets the
RequestHeaders to use for this call. |
ApolloQueryCall.Builder<T> |
responseFetcher(ResponseFetcher fetcher)
Sets the
ResponseFetcher strategy for an ApolloCall object. |
@NotNull ApolloQueryCall<T> build()
build in interface ApolloCall.Builder<T>@NotNull ApolloQueryCall.Builder<T> cacheHeaders(@NotNull com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
CacheHeaders 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 - the CacheHeaders that will be passed with records generated from this request to NormalizedCache. Standardized cache headers are
defined in ApolloCacheHeaders.CacheHeaders.@NotNull ApolloQueryCall.Builder<T> httpCachePolicy(@NotNull com.apollographql.apollo.api.cache.http.HttpCachePolicy.Policy httpCachePolicy)
httpCachePolicy - HttpCachePolicy.Policy to setApolloQueryCall with the provided HttpCachePolicy.Policy@NotNull ApolloQueryCall.Builder<T> responseFetcher(@NotNull ResponseFetcher fetcher)
ResponseFetcher strategy for an ApolloCall object.fetcher - the ResponseFetcher to use.@NotNull ApolloQueryCall.Builder<T> requestHeaders(@NotNull RequestHeaders requestHeaders)
RequestHeaders 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 - The RequestHeaders to use for this request.