Module org.apache.wicket.metrics
Class SessionCountListener
java.lang.Object
org.apache.wicket.metrics.aspects.session.SessionCountListener
- All Implemented Interfaces:
jakarta.servlet.http.HttpSessionListener
,EventListener
@WebListener
public class SessionCountListener
extends Object
implements jakarta.servlet.http.HttpSessionListener
Listener that counts the current active sessions
- Author:
- Tobias Soloschenko
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dec
(jakarta.servlet.http.HttpSessionEvent event) Used to wire an aspect aroundvoid
inc
(jakarta.servlet.http.HttpSessionEvent event) Used to wire an aspect aroundvoid
sessionCreated
(jakarta.servlet.http.HttpSessionEvent event) void
sessionDestroyed
(jakarta.servlet.http.HttpSessionEvent event)
-
Constructor Details
-
SessionCountListener
public SessionCountListener()
-
-
Method Details
-
sessionDestroyed
- Specified by:
sessionDestroyed
in interfacejakarta.servlet.http.HttpSessionListener
-
sessionCreated
- Specified by:
sessionCreated
in interfacejakarta.servlet.http.HttpSessionListener
-
dec
Used to wire an aspect around- Parameters:
event
- the http session event
-
inc
Used to wire an aspect around- Parameters:
event
- the http session event
-