Interface SessionCloseHandler


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

Used to clean up 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 Summary

    Modifier and Type
    Method
    Description
    void
    Invoked after closing.
    void
    Invoked before closing.
  • Method Details

    • 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