public interface ApolloQueryCall<T> extends ApolloCall<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ApolloQueryCall.Factory
Factory for creating
ApolloQueryCall calls. |
ApolloCall.Callback<T>, ApolloCall.StatusEvent| Modifier and Type | Method and Description |
|---|---|
ApolloQueryCall<T> |
cacheHeaders(CacheHeaders cacheHeaders)
Sets the
CacheHeaders to use for this call. |
ApolloQueryCall<T> |
clone()
Creates a new, identical call to this one which can be enqueued or executed even if this call has already been.
|
ApolloQueryCall<T> |
httpCachePolicy(com.apollographql.apollo.api.cache.http.HttpCachePolicy.Policy httpCachePolicy)
Sets the http cache policy for response/request cache.
|
ApolloQueryCall<T> |
responseFetcher(ResponseFetcher fetcher)
Sets the
ResponseFetcher strategy for an ApolloCall object. |
ApolloQueryWatcher<T> |
watcher()
Returns a watcher to watch the changes to the normalized cache records this query depends on or when mutation call
triggers to re-fetch this query after it completes via
ApolloMutationCall.refetchQueries(OperationName...) |
cancel, enqueue, operationisCanceled@NotNull ApolloQueryWatcher<T> watcher()
ApolloMutationCall.refetchQueries(OperationName...)ApolloQueryWatcher@NotNull ApolloQueryCall<T> httpCachePolicy(@NotNull com.apollographql.apollo.api.cache.http.HttpCachePolicy.Policy httpCachePolicy)
httpCachePolicy - HttpCachePolicy.Policy to setApolloQueryCall with the provided HttpCachePolicy.Policy@NotNull ApolloQueryCall<T> cacheHeaders(@NotNull 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<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<T> responseFetcher(@NotNull ResponseFetcher fetcher)
ResponseFetcher strategy for an ApolloCall object.fetcher - the ResponseFetcher to use.@NotNull ApolloQueryCall<T> clone()
ApolloCallclone in interface ApolloCall<T>