Interface SessionListener
-
public interface SessionListenerInterface for receiving notification events about DefaultSession lifecycle changes.Created: 2017. 6. 25.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidattributeAdded(Session session, java.lang.String name, java.lang.Object value)Receives notification that an attribute has been added to a session.default voidattributeRemoved(Session session, java.lang.String name, java.lang.Object oldValue)Receives notification that an attribute has been removed from a session.default voidattributeUpdated(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 voidsessionCreated(Session session)Receives notification that a session has been created.default voidsessionDestroyed(Session session)Receives notification that a session is about to be invalidated.default voidsessionIdChanged(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 unboundname- the name with which the object is bound or unboundvalue- 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 unboundname- the name with which the object is bound or unboundnewValue- the new value of the attribute that has been addedoldValue- 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 unboundname- the name with which the object is bound or unboundoldValue- the old value of the attribute that has been removed
-
sessionIdChanged
default void sessionIdChanged(Session session, java.lang.String oldSessionId)
-
-