Class Session.Listener.Adapter

    • Constructor Detail

      • Adapter

        public Adapter()
    • Method Detail

      • onPreface

        public java.util.Map<java.lang.Integer,​java.lang.Integer> onPreface​(Session session)
        Description copied from interface: Session.Listener

        Callback method invoked:

        • for clients, just before the preface is sent, to gather the SETTINGS configuration options the client wants to send to the server;
        • for servers, just after having received the preface, to gather the SETTINGS configuration options the server wants to send to the client.
        Specified by:
        onPreface in interface Session.Listener
        Parameters:
        session - the session
        Returns:
        a (possibly empty or null) map containing SETTINGS configuration options to send.
      • onSettings

        public void onSettings​(Session session,
                               SettingsFrame frame)
        Description copied from interface: Session.Listener

        Callback method invoked when a SETTINGS frame has been received.

        Specified by:
        onSettings in interface Session.Listener
        Parameters:
        session - the session
        frame - the SETTINGS frame received
      • onPing

        public void onPing​(Session session,
                           PingFrame frame)
        Description copied from interface: Session.Listener

        Callback method invoked when a PING frame has been received.

        Specified by:
        onPing in interface Session.Listener
        Parameters:
        session - the session
        frame - the PING frame received
      • onIdleTimeout

        public boolean onIdleTimeout​(Session session)
        Description copied from interface: Session.Listener

        Callback method invoked when the idle timeout expired.

        Specified by:
        onIdleTimeout in interface Session.Listener
        Parameters:
        session - the session
        Returns:
        whether the session should be closed