public abstract class AbstractSessionProvider extends java.lang.Object implements SessionProvider
| Constructor and Description |
|---|
AbstractSessionProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSession(SSession session) |
void |
cleanInvalidSessions() |
void |
deleteSessionsOfTenant(long tenantId,
boolean keepTechnicalSessions) |
SSession |
getSession(long sessionId) |
protected abstract java.util.Map<java.lang.Long,SSession> |
getSessions() |
protected SSession |
putSession(SSession session,
long id) |
void |
removeSession(long sessionId) |
void |
removeSessions() |
void |
updateSession(SSession session) |
protected abstract java.util.Map<java.lang.Long,SSession> getSessions()
public void addSession(SSession session) throws SSessionAlreadyExistsException
addSession in interface SessionProviderSSessionAlreadyExistsExceptionpublic void removeSession(long sessionId)
throws SSessionNotFoundException
removeSession in interface SessionProviderSSessionNotFoundExceptionpublic SSession getSession(long sessionId) throws SSessionNotFoundException
getSession in interface SessionProviderSSessionNotFoundExceptionpublic void updateSession(SSession session) throws SSessionNotFoundException
updateSession in interface SessionProviderSSessionNotFoundExceptionpublic void cleanInvalidSessions()
cleanInvalidSessions in interface SessionProviderpublic void removeSessions()
removeSessions in interface SessionProviderpublic void deleteSessionsOfTenant(long tenantId,
boolean keepTechnicalSessions)
deleteSessionsOfTenant in interface SessionProvider