public.javadoc.org.spincast.plugins.session.SpincastSessionRepository.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastSessionRepository (org.spincast:spincast-framework 1.0.0 API)
org.spincast.plugins.session
Interface SpincastSessionRepository
-
public interface SpincastSessionRepository
The repository to CRUD the sessions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type
Method and Description
void
deleteOldInactiveSession(int sessionMaxInactiveMinutes)
Deletes the deletes that were inactive for too long.
void
deleteSession(String sessionId)
Deletes a saved session.
SpincastSession
getSession(String sessionId)
Gets a session from the database/data source.
void
saveSession(SpincastSession session)
Save a session.
-
-
Method Detail
-
saveSession
void saveSession(SpincastSession session)
Save a session.
-
getSession
SpincastSession getSession(String sessionId)
Gets a session from the database/data source.
- Returns:
- the session or
null
if not found.
-
deleteSession
void deleteSession(String sessionId)
Deletes a saved session.
-
deleteOldInactiveSession
void deleteOldInactiveSession(int sessionMaxInactiveMinutes)
Deletes the deletes that were inactive for too long.
This means their last "modification date" must be older than
the specified number of mminutes.
Copyright © 2019. All rights reserved.