Package com.apollographql.apollo
Interface ApolloQueryCall<T>
-
- All Superinterfaces:
ApolloCall<T>,Cancelable
- All Known Implementing Classes:
RealApolloCall
public interface ApolloQueryCall<T> extends ApolloCall<T>
A call prepared to execute GraphQL query operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceApolloQueryCall.Builder<T>static interfaceApolloQueryCall.FactoryFactory for creatingApolloQueryCallcalls.-
Nested classes/interfaces inherited from interface com.apollographql.apollo.ApolloCall
ApolloCall.Callback<T>, ApolloCall.StatusEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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 viaApolloMutationCall.refetchQueries(OperationName...)-
Methods inherited from interface com.apollographql.apollo.ApolloCall
cancel, enqueue, operation
-
Methods inherited from interface com.apollographql.apollo.internal.util.Cancelable
isCanceled
-
-
-
-
Method Detail
-
watcher
@NotNull 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 viaApolloMutationCall.refetchQueries(OperationName...)- Returns:
ApolloQueryWatcher
-
httpCachePolicy
@Deprecated @NotNull ApolloQueryCall<T> httpCachePolicy(@NotNull com.apollographql.apollo.api.cache.http.HttpCachePolicy.Policy httpCachePolicy)
Deprecated.Sets the http cache policy for response/request cache. Deprecated, usetoBuilder()to mutate the ApolloCall- Parameters:
httpCachePolicy-HttpCachePolicy.Policyto set- Returns:
ApolloQueryCallwith the providedHttpCachePolicy.Policy
-
cacheHeaders
@Deprecated @NotNull ApolloQueryCall<T> cacheHeaders(@NotNull com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
Deprecated.Sets theCacheHeadersto use for this call.com.apollographql.apollo.interceptor.FetchOptionswill be configured with this headers, and will be accessible from theResponseFetcherused for this call. Deprecated, usetoBuilder()to mutate the ApolloCall- Specified by:
cacheHeadersin interfaceApolloCall<T>- Parameters:
cacheHeaders- theCacheHeadersthat will be passed with records generated from this request toNormalizedCache. Standardized cache headers are defined inApolloCacheHeaders.- Returns:
- The ApolloCall object with the provided
CacheHeaders.
-
responseFetcher
@Deprecated @NotNull ApolloQueryCall<T> responseFetcher(@NotNull ResponseFetcher fetcher)
Deprecated.Sets theResponseFetcherstrategy for an ApolloCall object. Deprecated, usetoBuilder()to mutate the ApolloCall- Parameters:
fetcher- theResponseFetcherto use.- Returns:
- The ApolloCall object with the provided CacheControl strategy
-
requestHeaders
@Deprecated @NotNull ApolloQueryCall<T> requestHeaders(@NotNull RequestHeaders requestHeaders)
Deprecated.Sets theRequestHeadersto 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, usetoBuilder()to mutate the ApolloCall- Parameters:
requestHeaders- TheRequestHeadersto use for this request.- Returns:
- The ApolloCall object with the provided
RequestHeaders.
-
clone
@Deprecated @NotNull ApolloQueryCall<T> clone()
Deprecated.Description copied from interface:ApolloCallCreates a new, identical call to this one which can be enqueued or executed even if this call has already been. Deprecated, useApolloCall.toBuilder()to mutate the ApolloCall- Specified by:
clonein interfaceApolloCall<T>- Returns:
- The cloned ApolloCall object.
-
toBuilder
@NotNull ApolloQueryCall.Builder<T> toBuilder()
- Specified by:
toBuilderin interfaceApolloCall<T>
-
-