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 TypeMethodDescriptionvoiddeleteOldInactiveSession(int sessionMaxInactiveMinutes) Deletes the deletes that were inactive for too long.voiddeleteSession(String sessionId) Deletes a saved session.getSession(String sessionId) Gets a session from the database/data source.voidsaveSession(SpincastSession session) Save a session.
-
Method Details
-
saveSession
Save a session. -
getSession
Gets a session from the database/data source.- Returns:
- the session or
nullif 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.
-