Interface SpincastSessionRepository

All Known Implementing Classes:
SpincastSessionRepositoryDefault

public interface SpincastSessionRepository
The repository to CRUD the sessions.
  • Method Details

    • 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.