Class GraphQLSessionDisconnectEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class GraphQLSessionDisconnectEvent
    extends AbstractGraphQLSubProtocolEvent
    Event raised when the session of a WebSocket client is closed.

    Note that this event may be raised more than once for a single session and therefore event consumers should be idempotent and ignore a duplicate event.

    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      GraphQLSessionDisconnectEvent​(java.lang.Object source, org.springframework.messaging.Message<org.activiti.cloud.services.notifications.graphql.ws.api.GraphQLMessage> message, java.lang.String sessionId, org.springframework.web.socket.CloseStatus closeStatus)
      Create a new SessionDisconnectEvent.
      GraphQLSessionDisconnectEvent​(java.lang.Object source, org.springframework.messaging.Message<org.activiti.cloud.services.notifications.graphql.ws.api.GraphQLMessage> message, java.lang.String sessionId, org.springframework.web.socket.CloseStatus closeStatus, java.security.Principal user)
      Create a new SessionDisconnectEvent.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.web.socket.CloseStatus getCloseStatus()
      Return the status with which the session was closed.
      java.lang.String getSessionId()
      Return the session id.
      java.lang.String toString()  
      • Methods inherited from class org.springframework.context.ApplicationEvent

        getTimestamp
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

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

      • GraphQLSessionDisconnectEvent

        public GraphQLSessionDisconnectEvent​(java.lang.Object source,
                                             org.springframework.messaging.Message<org.activiti.cloud.services.notifications.graphql.ws.api.GraphQLMessage> message,
                                             java.lang.String sessionId,
                                             org.springframework.web.socket.CloseStatus closeStatus)
        Create a new SessionDisconnectEvent.
        Parameters:
        source - the component that published the event (never null)
        message - the message
        sessionId - the disconnect message
        closeStatus - the status object
      • GraphQLSessionDisconnectEvent

        public GraphQLSessionDisconnectEvent​(java.lang.Object source,
                                             org.springframework.messaging.Message<org.activiti.cloud.services.notifications.graphql.ws.api.GraphQLMessage> message,
                                             java.lang.String sessionId,
                                             org.springframework.web.socket.CloseStatus closeStatus,
                                             java.security.Principal user)
        Create a new SessionDisconnectEvent.
        Parameters:
        source - the component that published the event (never null)
        message - the message
        sessionId - the disconnect message
        closeStatus - the status object
        user - the current session user
    • Method Detail

      • getSessionId

        public java.lang.String getSessionId()
        Return the session id.
      • getCloseStatus

        public org.springframework.web.socket.CloseStatus getCloseStatus()
        Return the status with which the session was closed.