Class SubscriptionClientReactiveImpl

java.lang.Object
com.graphql_java_generator.client.SubscriptionClientReactiveImpl
All Implemented Interfaces:
SubscriptionClient

public class SubscriptionClientReactiveImpl
extends java.lang.Object
implements SubscriptionClient
Default implementation for the SubscriptionClient interface.
Author:
etienne-sf
  • Constructor Summary

    Constructors 
    Constructor Description
    SubscriptionClientReactiveImpl​(reactor.core.Disposable disposable, org.springframework.web.reactive.socket.WebSocketSession session)  
  • Method Summary

    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 Details

    • SubscriptionClientReactiveImpl

      public SubscriptionClientReactiveImpl​(reactor.core.Disposable disposable, org.springframework.web.reactive.socket.WebSocketSession session)
      Parameters:
      disposable - The Disposable That allows to close the underlying Flux, that receive the subscription notifications
      session - The connected WebSocketSession
  • Method Details