Class SubscriptionClientReactiveImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      SubscriptionClientReactiveImpl​(java.lang.String uniqueIdOperation, com.graphql_java_generator.client.GraphQLReactiveWebSocketHandler.WebSocketSessionHandler webSocketSessionHandler)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.web.reactive.socket.WebSocketSession getSession()
      Allow to retrieve the WebSocketSession, when the implementation is based on Spring Reactive, which is the default since release 1.12
      void unsubscribe()
      Allows the client application to unsubscribe from a previously subscribed subscription.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SubscriptionClientReactiveImpl

        public SubscriptionClientReactiveImpl​(java.lang.String uniqueIdOperation,
                                              com.graphql_java_generator.client.GraphQLReactiveWebSocketHandler.WebSocketSessionHandler webSocketSessionHandler)
        Parameters:
        disposable - The Disposable That allows to close the underlying Flux, that receive the subscription notifications
        webSocketSessionHandler - The connected WebSocketSession
    • Method Detail

      • getSession

        public org.springframework.web.reactive.socket.WebSocketSession getSession()
        Description copied from interface: SubscriptionClient
        Allow to retrieve the WebSocketSession, when the implementation is based on Spring Reactive, which is the default since release 1.12
        Specified by:
        getSession in interface SubscriptionClient
        Returns:
        The WebSocketSession, if the Spring reactive implementation is used. Or null otherwise