public interface AppSyncQueryCall<T> extends GraphQLCall<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
AppSyncQueryCall.Factory
Factory for creating
AppSyncQueryCall calls. |
GraphQLCall.Callback<T>, GraphQLCall.StatusEvent| Modifier and Type | Method and Description |
|---|---|
AppSyncQueryCall<T> |
cacheHeaders(CacheHeaders cacheHeaders)
Sets the
CacheHeaders to use for this call. |
AppSyncQueryCall<T> |
clone()
Creates a new, identical call to this one which can be enqueued or executed even if this call has already been.
|
AppSyncQueryCall<T> |
httpCachePolicy(com.apollographql.apollo.api.cache.http.HttpCachePolicy.Policy httpCachePolicy)
Sets the http cache policy for response/request cache.
|
AppSyncQueryCall<T> |
responseFetcher(ResponseFetcher fetcher)
Sets the
ResponseFetcher strategy for an GraphQLCall object. |
AppSyncQueryWatcher<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
AppSyncMutationCall.refetchQueries(OperationName...) |
cancel, enqueue, operationisCanceled@Nonnull AppSyncQueryWatcher<T> watcher()
AppSyncMutationCall.refetchQueries(OperationName...)AppSyncQueryWatcher@Nonnull AppSyncQueryCall<T> httpCachePolicy(@Nonnull com.apollographql.apollo.api.cache.http.HttpCachePolicy.Policy httpCachePolicy)
httpCachePolicy - HttpCachePolicy.Policy to setAppSyncQueryCall with the provided HttpCachePolicy.Policy@Nonnull AppSyncQueryCall<T> cacheHeaders(@Nonnull CacheHeaders cacheHeaders)
CacheHeaders to use for this call. FetchOptions will
be configured with this headers, and will be accessible from the ResponseFetcher used for this call.cacheHeaders in interface GraphQLCall<T>cacheHeaders - the CacheHeaders that will be passed with records generated from this request to NormalizedCache. Standardized cache headers are
defined in GraphQLCacheHeaders.CacheHeaders.@Nonnull AppSyncQueryCall<T> responseFetcher(@Nonnull ResponseFetcher fetcher)
ResponseFetcher strategy for an GraphQLCall object.fetcher - the ResponseFetcher to use.@Nonnull AppSyncQueryCall<T> clone()
GraphQLCallclone in interface GraphQLCall<T>