public interface ApolloQueryCall<T> extends ApolloCall<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ApolloQueryCall.Builder<T> |
static interface |
ApolloQueryCall.Factory
Factory for creating
ApolloQueryCall calls. |
ApolloCall.Callback<T>, ApolloCall.StatusEvent| Modifier and Type | Method and Description |
|---|---|
ApolloQueryCall<T> |
cacheHeaders(com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
Deprecated.
|
ApolloQueryCall<T> |
clone()
Deprecated.
|
ApolloQueryCall<T> |
httpCachePolicy(com.apollographql.apollo.api.cache.http.HttpCachePolicy.Policy httpCachePolicy)
Deprecated.
|
ApolloQueryCall<T> |
requestHeaders(RequestHeaders requestHeaders)
Deprecated.
|
ApolloQueryCall<T> |
responseFetcher(ResponseFetcher fetcher)
Deprecated.
|
ApolloQueryCall.Builder<T> |
toBuilder() |
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@Deprecated @NotNull ApolloQueryCall<T> httpCachePolicy(@NotNull com.apollographql.apollo.api.cache.http.HttpCachePolicy.Policy httpCachePolicy)
toBuilder() to mutate the ApolloCallhttpCachePolicy - HttpCachePolicy.Policy to setApolloQueryCall with the provided HttpCachePolicy.Policy@Deprecated @NotNull ApolloQueryCall<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.
Deprecated, use toBuilder() to mutate the ApolloCallcacheHeaders 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.@Deprecated @NotNull ApolloQueryCall<T> responseFetcher(@NotNull ResponseFetcher fetcher)
ResponseFetcher strategy for an ApolloCall object.
Deprecated, use toBuilder() to mutate the ApolloCallfetcher - the ResponseFetcher to use.@Deprecated @NotNull ApolloQueryCall<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.
Deprecated, use toBuilder() to mutate the ApolloCallrequestHeaders - The RequestHeaders to use for this request.RequestHeaders.@Deprecated @NotNull ApolloQueryCall<T> clone()
ApolloCallApolloCall.toBuilder() to mutate the ApolloCallclone in interface ApolloCall<T>@NotNull ApolloQueryCall.Builder<T> toBuilder()
toBuilder in interface ApolloCall<T>