Interface SubscriptionTransport.Callback

  • Enclosing interface:
    SubscriptionTransport

    public static interface SubscriptionTransport.Callback
    Communicates responses from a subscription server.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onClosed()
      Gets called when connection with subscription server is closed.
      void onConnected()
      Gets called when connection with subscription server has been established.
      void onFailure​(java.lang.Throwable t)
      Gets called when an unexpected exception occurs during communication to the server.
      void onMessage​(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.