Interface ApolloQueryCall<T>

    • Method Detail

      • 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, use toBuilder() to mutate the ApolloCall
        Parameters:
        httpCachePolicy - HttpCachePolicy.Policy to set
        Returns:
        ApolloQueryCall with the provided HttpCachePolicy.Policy
      • cacheHeaders

        @Deprecated
        @NotNull
        ApolloQueryCall<T> cacheHeaders​(@NotNull
                                        com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
        Deprecated.
        Sets the 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 ApolloCall
        Specified by:
        cacheHeaders in interface ApolloCall<T>
        Parameters:
        cacheHeaders - the CacheHeaders that will be passed with records generated from this request to NormalizedCache. Standardized cache headers are defined in ApolloCacheHeaders.
        Returns:
        The ApolloCall object with the provided CacheHeaders.
      • requestHeaders

        @Deprecated
        @NotNull
        ApolloQueryCall<T> requestHeaders​(@NotNull
                                          RequestHeaders requestHeaders)
        Deprecated.
        Sets the 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 ApolloCall
        Parameters:
        requestHeaders - The RequestHeaders to use for this request.
        Returns:
        The ApolloCall object with the provided RequestHeaders.
      • clone

        @Deprecated
        @NotNull
        ApolloQueryCall<T> clone()
        Deprecated.
        Description copied from interface: ApolloCall
        Creates a new, identical call to this one which can be enqueued or executed even if this call has already been. Deprecated, use ApolloCall.toBuilder() to mutate the ApolloCall
        Specified by:
        clone in interface ApolloCall<T>
        Returns:
        The cloned ApolloCall object.