Package dev.frostlake.http
Class SessionManager
java.lang.Object
dev.frostlake.http.SessionManager
Manages HTTP sessions for concurrent users
Handles session creation, retrieval, and cleanup
-
Constructor Summary
ConstructorsConstructorDescriptionSessionManager(long sessionTimeoutMs) SessionManager(String defaultDatabase, String defaultSchema) A manager whose new sessions start in the server's configured default database/schema.SessionManager(String defaultDatabase, String defaultSchema, long sessionTimeoutMs) -
Method Summary
Modifier and TypeMethodDescriptionCreate a new sessionintGet active session countgetOrCreateSession(String sessionId) Get or create session by IDgetSession(String sessionId) Get existing sessionvoidremoveSession(String sessionId) Remove a sessionvoidshutdown()Shutdown the session manager
-
Constructor Details
-
SessionManager
public SessionManager() -
SessionManager
public SessionManager(long sessionTimeoutMs) -
SessionManager
A manager whose new sessions start in the server's configured default database/schema. -
SessionManager
-
-
Method Details
-
createSession
Create a new session -
getOrCreateSession
Get or create session by ID -
getSession
Get existing session -
removeSession
Remove a session -
getActiveSessionCount
public int getActiveSessionCount()Get active session count -
shutdown
public void shutdown()Shutdown the session manager
-