public static interface ApolloSubscriptionCall.Callback<T>
Modifier and Type | Method and Description |
---|---|
void |
onCompleted()
Gets called when final GraphQL response is received.
|
void |
onConnected()
Gets called when GraphQL subscription server connection is opened.
|
void |
onFailure(ApolloException e)
Gets called when an unexpected exception occurs while creating the request or processing the response.
|
void |
onResponse(com.apollographql.apollo.api.Response<T> response)
Gets called when GraphQL response is received and parsed successfully.
|
void |
onTerminated()
Gets called when GraphQL subscription server connection is closed unexpectedly.
|
void onResponse(@NotNull com.apollographql.apollo.api.Response<T> response)
onCompleted()
will be called after the final call to onResponse.response
- the GraphQL responsevoid onFailure(@NotNull ApolloException e)
onResponse(Response)
or onCompleted()
will be called again.void onCompleted()
void onTerminated()
void onConnected()