Interface Session.SessionLifecycleListener

  • All Superinterfaces:
    java.util.EventListener
    Enclosing interface:
    Session

    public static interface Session.SessionLifecycleListener
    extends java.util.EventListener
    A Listener that is notified of changes in a Session's lifecycle.
    • Method Detail

      • lifecycleEvent

        void lifecycleEvent​(Session session,
                            Session.Lifecycle previous,
                            Session.Lifecycle current)
        If this EventListener is registered with a Session this method is called whenever that Session's lifecycle changes. Note that the lifecycle may have changed again by the time this method is called so the Session's current lifecycle may be different from the value of current.
        Parameters:
        session - the Session
        previous - the previous value of the lifecycle
        current - the new value of the lifecycle