public interface ApolloQueryWatcher<T> extends Cancelable
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels this
ApolloQueryWatcher. |
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.Operation |
operation()
Returns GraphQL watched operation.
|
void |
refetch()
Re-fetches watched GraphQL query.
|
ApolloQueryWatcher<T> |
refetchResponseFetcher(ResponseFetcher fetcher) |
isCanceledApolloQueryWatcher<T> enqueueAndWatch(@Nullable ApolloCall.Callback<T> callback)
@NotNull ApolloQueryWatcher<T> refetchResponseFetcher(@NotNull ResponseFetcher fetcher)
fetcher - The ResponseFetcher to use when the call is refetched due to a field changing in the
cache.@NotNull com.apollographql.apollo.api.Operation operation()
Operationvoid refetch()
void cancel()
ApolloQueryWatcher. The ApolloCall.Callback
will be disposed, and will receive no more events. Any active operations will attempt to abort and
release resources, if possible.cancel in interface Cancelable@NotNull ApolloQueryWatcher<T> clone()