Skip navigation links
com.apollographql.apollo

Interface ApolloSubscriptionCall<T>

    • Method Detail

      • execute

        void execute(@NotNull
                     ApolloSubscriptionCall.Callback<T> callback)
        Sends Subscription to the subscription server and starts listening for the pushed updates. To cancel this subscription call use Cancelable.cancel().
        Parameters:
        callback - which will handle the subscription updates or a failure exception.
        Throws:
        ApolloCanceledException - when the call has already been canceled
        java.lang.IllegalStateException - when the call has already been executed
      • clone

        ApolloSubscriptionCall<T> clone()
        Creates a new, identical call to this one which can be executed even if this call has already been.
        Returns:
        The cloned ApolloSubscriptionCall object.