Interface SessionCloseHandler


  • public interface SessionCloseHandler
    A handler invoked whenever a Session is closed.

    Used to cleanup stuff related to the Session.

    Important: the close handler MUST NOT invoke any blocking or synchronized methods that could block the closing process!

    Author:
    harald
    • Method Detail

      • beforeClose

        void beforeClose​(Session session)
        Invoked before closing.
        Parameters:
        session - the closing session
      • afterClose

        void afterClose​(Session session)
        Invoked after closing.
        Parameters:
        session - the closed session