Class TeamAppsSessionManager

java.lang.Object
org.teamapps.uisession.TeamAppsSessionManager
All Implemented Interfaces:
jakarta.servlet.http.HttpSessionListener, EventListener

public class TeamAppsSessionManager extends Object implements jakarta.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.

  • Field Details

  • Constructor Details

  • Method Details

    • getUiSessionById

      public UiSession getUiSessionById(String sessionId)
    • getSessionContextById

      public SessionContext getSessionContextById(String sessionId)
    • getNumberOfSessions

      public int getNumberOfSessions()
    • getNumberOfSessionsByState

      public int getNumberOfSessionsByState(UiSessionState state)
    • getAllSessions

      public List<SessionPair> getAllSessions()
    • getBufferedCommandsCount

      public int getBufferedCommandsCount()
    • getUnconsumedCommandsCount

      public int getUnconsumedCommandsCount()
    • getNumberOfAvailableClosedSessionStatistics

      public int getNumberOfAvailableClosedSessionStatistics()
    • getClosedSessionsStatistics

      public List<UiSessionStats> getClosedSessionsStatistics()
    • initSession

      public void initSession(String sessionId, UiClientInfo clientInfo, jakarta.servlet.http.HttpSession httpSession, int maxRequestedCommandId, MessageSender messageSender)
    • sessionCreated

      public void sessionCreated(jakarta.servlet.http.HttpSessionEvent se)
      Specified by:
      sessionCreated in interface jakarta.servlet.http.HttpSessionListener
    • updateSessionStates

      public void updateSessionStates()
    • destroy

      public void destroy()
    • createSessionContext

      public SessionContext createSessionContext(UiSession uiSession, UiClientInfo uiClientInfo, jakarta.servlet.http.HttpSession httpSession, String navigationPathPrefix)