Class TeamAppsSessionManager

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

    public class TeamAppsSessionManager
    extends java.lang.Object
    implements javax.servlet.http.HttpSessionListener
    Implements a cache for UiSession instances.

    It takes care of the removal of timed-out sessions. The "last used" information is updated every time a session is retrieved.

    • Method Detail

      • getNumberOfSessions

        public int getNumberOfSessions()
      • getAllSessions

        public java.util.List<SessionPair> getAllSessions()
      • getNumberOfAvailableClosedSessionStatistics

        public int getNumberOfAvailableClosedSessionStatistics()
      • getClosedSessionsStatistics

        public java.util.List<UiSessionStats> getClosedSessionsStatistics()
      • initSession

        public void initSession​(QualifiedUiSessionId sessionId,
                                org.teamapps.dto.UiClientInfo clientInfo,
                                javax.servlet.http.HttpSession httpSession,
                                int maxRequestedCommandId,
                                MessageSender messageSender)
      • sessionCreated

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

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

        public void closeAllSessionsForHttpSession​(java.lang.String httpSessionId)
      • updateSessionStates

        public void updateSessionStates()
      • destroy

        public void destroy()
      • createSessionContext

        public SessionContext createSessionContext​(UiSession uiSession,
                                                   org.teamapps.dto.UiClientInfo uiClientInfo,
                                                   javax.servlet.http.HttpSession httpSession)