Class SessionCountListener

  • All Implemented Interfaces:
    EventListener, javax.servlet.http.HttpSessionListener

    @WebListener
    public class SessionCountListener
    extends Object
    implements javax.servlet.http.HttpSessionListener
    Listener that counts the current active sessions
    Author:
    Tobias Soloschenko
    • Method Detail

      • sessionDestroyed

        public void sessionDestroyed​(javax.servlet.http.HttpSessionEvent event)
        Specified by:
        sessionDestroyed in interface javax.servlet.http.HttpSessionListener
      • sessionCreated

        public void sessionCreated​(javax.servlet.http.HttpSessionEvent event)
        Specified by:
        sessionCreated in interface javax.servlet.http.HttpSessionListener
      • dec

        public void dec​(javax.servlet.http.HttpSessionEvent event)
        Used to wire an aspect around
        Parameters:
        event - the http session event
      • inc

        public void inc​(javax.servlet.http.HttpSessionEvent event)
        Used to wire an aspect around
        Parameters:
        event - the http session event