Class ConnectionStateChangedEvent


  • public class ConnectionStateChangedEvent
    extends Object
    Data carrier for connection state events.
    • Constructor Detail

      • ConnectionStateChangedEvent

        public ConnectionStateChangedEvent​(Session session,
                                           ConnectionState state)
        Creates a new instance of this event object.
        Parameters:
        session - the session object that fired this event.
        state - being reported by this event.
    • Method Detail

      • getSession

        public Session getSession()
        Returns:
        the session object that fired this event.
      • getState

        public ConnectionState getState()
        Returns:
        connection state being reported by this event.
      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        a human-readable rendering of this object.