Package org.teamapps.uisession
Klasse TeamAppsSessionManager
java.lang.Object
org.teamapps.uisession.TeamAppsSessionManager
- Alle implementierten Schnittstellen:
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.
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungTeamAppsSessionManager(TeamAppsConfiguration config, com.fasterxml.jackson.databind.ObjectMapper objectMapper, SequentialExecutorFactory sessionExecutorFactory, WebController webController, org.teamapps.icons.IconProvider iconProvider, TeamAppsUploadManager uploadManager) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcreateSessionContext(UiSession uiSession, org.teamapps.dto.UiClientInfo uiClientInfo, jakarta.servlet.http.HttpSession httpSession, String navigationPathPrefix) voiddestroy()intintintintgetSessionContextById(String sessionId) getUiSessionById(String sessionId) intvoidinitSession(String sessionId, org.teamapps.dto.UiClientInfo clientInfo, jakarta.servlet.http.HttpSession httpSession, int maxRequestedCommandId, MessageSender messageSender) voidsessionCreated(jakarta.servlet.http.HttpSessionEvent se) voidVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden jakarta.servlet.http.HttpSessionListener
sessionDestroyed
-
Felddetails
-
TEAMAPPS_VERSION_REFRESH_PARAMETER
- Siehe auch:
-
onStatsUpdated
-
-
Konstruktordetails
-
TeamAppsSessionManager
public TeamAppsSessionManager(TeamAppsConfiguration config, com.fasterxml.jackson.databind.ObjectMapper objectMapper, SequentialExecutorFactory sessionExecutorFactory, WebController webController, org.teamapps.icons.IconProvider iconProvider, TeamAppsUploadManager uploadManager)
-
-
Methodendetails
-
getUiSessionById
-
getSessionContextById
-
getNumberOfSessions
public int getNumberOfSessions() -
getNumberOfSessionsByState
-
getAllSessions
-
getBufferedCommandsCount
public int getBufferedCommandsCount() -
getUnconsumedCommandsCount
public int getUnconsumedCommandsCount() -
getNumberOfAvailableClosedSessionStatistics
public int getNumberOfAvailableClosedSessionStatistics() -
getClosedSessionsStatistics
-
initSession
public void initSession(String sessionId, org.teamapps.dto.UiClientInfo clientInfo, jakarta.servlet.http.HttpSession httpSession, int maxRequestedCommandId, MessageSender messageSender) -
sessionCreated
public void sessionCreated(jakarta.servlet.http.HttpSessionEvent se) - Angegeben von:
sessionCreatedin Schnittstellejakarta.servlet.http.HttpSessionListener
-
updateSessionStates
public void updateSessionStates() -
destroy
public void destroy() -
createSessionContext
public SessionContext createSessionContext(UiSession uiSession, org.teamapps.dto.UiClientInfo uiClientInfo, jakarta.servlet.http.HttpSession httpSession, String navigationPathPrefix)
-