Package jakarta.servlet.http
Interface HttpSessionActivationListener
- All Superinterfaces:
EventListener
Objects that are bound to a session may listen to container events notifying them that sessions will be passivated
and that session will be activated. A container that migrates session between VMs or persists sessions is required to
notify all attributes bound to sessions implementing HttpSessionActivationListener.
- Since:
- Servlet 2.3
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Notification that the session has just been activated.default void
Notification that the session is about to be passivated.
-
Method Details
-
sessionWillPassivate
Notification that the session is about to be passivated.- Parameters:
se
- theHttpSessionEvent
indicating the passivation of the session
-
sessionDidActivate
Notification that the session has just been activated.- Parameters:
se
- theHttpSessionEvent
indicating the activation of the session
-