Interface SessionListener


  • public interface SessionListener
    Interface for receiving notification events about BasicSession lifecycle changes.

    Created: 2017. 6. 25.

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default void attributeAdded​(Session session, java.lang.String name, java.lang.Object value)
      Receives notification that an attribute has been added to a session.
      default void attributeRemoved​(Session session, java.lang.String name, java.lang.Object oldValue)
      Receives notification that an attribute has been removed from a session.
      default void attributeUpdated​(Session session, java.lang.String name, java.lang.Object newValue, java.lang.Object oldValue)
      Receives notification that an attribute has been replaced in a session.
      default void sessionCreated​(Session session)
      Receives notification that a session has been created.
      default void sessionDestroyed​(Session session)
      Receives notification that a session is about to be invalidated.
      default void sessionIdChanged​(Session session, java.lang.String oldSessionId)  
    • Method Detail

      • sessionCreated

        default void sessionCreated​(Session session)
        Receives notification that a session has been created.
        Parameters:
        session - the new session
      • sessionDestroyed

        default void sessionDestroyed​(Session session)
        Receives notification that a session is about to be invalidated.
        Parameters:
        session - the session
      • attributeAdded

        default void attributeAdded​(Session session,
                                    java.lang.String name,
                                    java.lang.Object value)
        Receives notification that an attribute has been added to a session.
        Parameters:
        session - the session to which the object is bound or unbound
        name - the name with which the object is bound or unbound
        value - the new value of the attribute that has been added
      • attributeUpdated

        default void attributeUpdated​(Session session,
                                      java.lang.String name,
                                      java.lang.Object newValue,
                                      java.lang.Object oldValue)
        Receives notification that an attribute has been replaced in a session.
        Parameters:
        session - the session to which the object is bound or unbound
        name - the name with which the object is bound or unbound
        newValue - the new value of the attribute that has been added
        oldValue - the old value of the attribute that has been removed
      • attributeRemoved

        default void attributeRemoved​(Session session,
                                      java.lang.String name,
                                      java.lang.Object oldValue)
        Receives notification that an attribute has been removed from a session.
        Parameters:
        session - the session to which the object is bound or unbound
        name - the name with which the object is bound or unbound
        oldValue - the old value of the attribute that has been removed
      • sessionIdChanged

        default void sessionIdChanged​(Session session,
                                      java.lang.String oldSessionId)