SessionCachepublic class DefaultSessionCache extends AbstractSessionCache
Created: 2017. 6. 24.
AbstractSessionCache.PlaceHolderSessionevictionPolicy, removeUnloadableSessions, saveOnCreate, saveOnInactiveEviction, sessionDataStore, sessionHandlerEVICT_ON_INACTIVITY, EVICT_ON_SESSION_EXIT, NEVER_EVICT| Constructor | Description |
|---|---|
DefaultSessionCache(SessionHandler sessionHandler) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
|
Session |
doDelete(java.lang.String id) |
Remove the session with this identity from the store.
|
Session |
doGet(java.lang.String id) |
Get the session matching the key.
|
Session |
doPutIfAbsent(java.lang.String id,
Session session) |
Put the session into the map if it wasn't already there.
|
boolean |
doReplace(java.lang.String id,
Session oldValue,
Session newValue) |
Replace the mapping from id to oldValue with newValue.
|
long |
getSessionsCurrent() |
|
long |
getSessionsMax() |
|
long |
getSessionsTotal() |
Returns a running total of sessions in the cache.
|
Session |
newSession(SessionData data) |
Create a new Session object from pre-existing session data.
|
void |
resetStats() |
Resets the running total session count in the cache.
|
checkExpiration, checkInactiveSession, contains, delete, exists, get, getEvictionPolicy, getSessionDataStore, getSessionHandler, isRemoveUnloadableSessions, isSaveOnCreate, isSaveOnInactiveEviction, newSession, put, setEvictionPolicy, setRemoveUnloadableSessions, setSaveOnCreate, setSaveOnInactiveEviction, setSessionDataStorepublic DefaultSessionCache(SessionHandler sessionHandler)
public Session doGet(java.lang.String id)
AbstractSessionCachedoGet in class AbstractSessionCacheid - the session idpublic Session doPutIfAbsent(java.lang.String id, Session session)
AbstractSessionCachedoPutIfAbsent in class AbstractSessionCacheid - the identity of the sessionsession - the session objectpublic Session doDelete(java.lang.String id)
AbstractSessionCachedoDelete in class AbstractSessionCacheid - the session idpublic boolean doReplace(java.lang.String id,
Session oldValue,
Session newValue)
AbstractSessionCachedoReplace in class AbstractSessionCacheid - the session idoldValue - the old valuenewValue - the new valuepublic Session newSession(SessionData data)
AbstractSessionCachenewSession in interface SessionCachenewSession in class AbstractSessionCachedata - the session datapublic long getSessionsCurrent()
public long getSessionsMax()
public long getSessionsTotal()
SessionCachepublic void resetStats()
SessionCachepublic void clear()
Copyright © 2008–2018 The Aspectran Project. All rights reserved.