Interface SubscriptionTransport.Callback
-
- Enclosing interface:
- SubscriptionTransport
public static interface SubscriptionTransport.CallbackCommunicates responses from a subscription server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonClosed()Gets called when connection with subscription server is closed.voidonConnected()Gets called when connection with subscription server has been established.voidonFailure(java.lang.Throwable t)Gets called when an unexpected exception occurs during communication to the server.voidonMessage(com.apollographql.apollo.subscription.OperationServerMessage message)Gets called when subscription server pushed new updates.
-
-
-
Method Detail
-
onConnected
void onConnected()
Gets called when connection with subscription server has been established.
-
onFailure
void onFailure(java.lang.Throwable t)
Gets called when an unexpected exception occurs during communication to the server.- Parameters:
t- exception occurred during communication.
-
onMessage
void onMessage(com.apollographql.apollo.subscription.OperationServerMessage message)
Gets called when subscription server pushed new updates.- Parameters:
message- new message received from the server.
-
onClosed
void onClosed()
Gets called when connection with subscription server is closed.
-
-