Package com.apollographql.apollo
Interface ApolloQueryWatcher<T>
-
- All Superinterfaces:
Cancelable
public interface ApolloQueryWatcher<T> extends Cancelable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancel()Cancels thisApolloQueryWatcher.ApolloQueryWatcher<T>clone()Creates a new, identical call to this one which can be enqueued or executed even if this call has already been.ApolloQueryWatcher<T>enqueueAndWatch(ApolloCall.Callback<T> callback)com.apollographql.apollo.api.Operationoperation()Returns GraphQL watched operation.voidrefetch()Re-fetches watched GraphQL query.ApolloQueryWatcher<T>refetchResponseFetcher(ResponseFetcher fetcher)-
Methods inherited from interface com.apollographql.apollo.internal.util.Cancelable
isCanceled
-
-
-
-
Method Detail
-
enqueueAndWatch
ApolloQueryWatcher<T> enqueueAndWatch(@Nullable ApolloCall.Callback<T> callback)
-
refetchResponseFetcher
@NotNull ApolloQueryWatcher<T> refetchResponseFetcher(@NotNull ResponseFetcher fetcher)
- Parameters:
fetcher- TheResponseFetcherto use when the call is refetched due to a field changing in the cache.
-
operation
@NotNull com.apollographql.apollo.api.Operation operation()
Returns GraphQL watched operation.- Returns:
Operation
-
refetch
void refetch()
Re-fetches watched GraphQL query.
-
cancel
void cancel()
Cancels thisApolloQueryWatcher. TheApolloCall.Callbackwill be disposed, and will receive no more events. Any active operations will attempt to abort and release resources, if possible.- Specified by:
cancelin interfaceCancelable
-
clone
@NotNull ApolloQueryWatcher<T> clone()
Creates a new, identical call to this one which can be enqueued or executed even if this call has already been.- Returns:
- The cloned ApolloQueryWatcher object.
-
-