public abstract static class ApolloPrefetch.Callback
extends java.lang.Object
| Constructor and Description |
|---|
Callback() |
| Modifier and Type | Method and Description |
|---|---|
void |
onCanceledError(ApolloCanceledException e)
Gets called when
ApolloCall has been canceled. |
abstract void |
onFailure(com.apollographql.apollo.exception.ApolloException e)
Gets called when an unexpected exception occurs while creating the request or processing the response.
|
void |
onHttpError(ApolloHttpException e)
Gets called when an http request error takes place.
|
void |
onNetworkError(ApolloNetworkException e)
Gets called when an http request error takes place due to network failures, timeouts etc.
|
abstract void |
onSuccess()
Gets called when the request has succeeded.
|
public abstract void onSuccess()
public abstract void onFailure(@NotNull
com.apollographql.apollo.exception.ApolloException e)
public void onHttpError(@NotNull
ApolloHttpException e)
public void onNetworkError(@NotNull
ApolloNetworkException e)
public void onCanceledError(@NotNull
ApolloCanceledException e)
ApolloCall has been canceled.