Interface SessionDataAccessProvider

All Superinterfaces:
DataAccessProvider

public interface SessionDataAccessProvider extends DataAccessProvider
This DataAccessProvider is responsible for storing and maintaining session for the server.
  • Method Details

    • getSessionById

      @Nullable @Nullable Session getSessionById(String id)
      Returns a valid Session matching the supplied ID.
      Parameters:
      id - the ID of the session to search for
      Returns:
      the session, or null if no valid session was found
      Since:
      3.4.0
    • insertSession

      void insertSession(Session session)
      Creates a new Session with given expiration.
      Parameters:
      session - the session insert
      Since:
      3.4.0
    • updateSession

      void updateSession(Session session)
      Update an existing Session with new session data.
      Parameters:
      session - the session to update
      Since:
      3.4.0
    • updateSessionExpiration

      void updateSessionExpiration(String id, Instant expiresAt)
      Update an existing Session with new session data.
      Parameters:
      id - id of the session to update
      expiresAt - session time of expiration
      Since:
      3.4.0
    • deleteSessionState

      void deleteSessionState(String id)
      Delete session state matching id.
      Parameters:
      id - id of the session to delete