Package org.spincast.plugins.session
Interface SpincastSessionRepository
- All Known Implementing Classes:
SpincastSessionRepositoryDefault
public interface SpincastSessionRepository
The repository to CRUD the sessions.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteOldInactiveSession
(int sessionMaxInactiveMinutes) Deletes the deletes that were inactive for too long.void
deleteSession
(String sessionId) Deletes a saved session.getSession
(String sessionId) Gets a session from the database/data source.void
saveSession
(SpincastSession session) Save a session.
-
Method Details
-
saveSession
Save a session. -
getSession
Gets a session from the database/data source.- Returns:
- the session or
null
if not found.
-
deleteSession
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.
-