public class RedissonSessionManager
extends org.apache.catalina.session.ManagerBase
implements org.apache.catalina.Lifecycle
Modifier and Type | Field and Description |
---|---|
protected org.apache.catalina.util.LifecycleSupport |
lifecycle |
algorithm, container, DEFAULT_ALGORITHM, devRandomSource, digest, distributable, domain, duplicates, entropy, expiredSessions, initialized, maxActive, maxInactiveInterval, mserver, name, oname, processExpiresFrequency, processingTime, random, randomClass, randomIS, sessionAverageAliveTime, sessionCounter, sessionCreationTiming, sessionExpirationTiming, sessionIdLength, sessionMaxAliveTime, sessions, sm, support, TIMING_STATS_CACHE_SIZE
Constructor and Description |
---|
RedissonSessionManager() |
Modifier and Type | Method and Description |
---|---|
void |
addLifecycleListener(org.apache.catalina.LifecycleListener listener) |
org.apache.catalina.Session |
createEmptySession() |
org.apache.catalina.Session |
createSession(String sessionId) |
org.apache.catalina.LifecycleListener[] |
findLifecycleListeners() |
org.apache.catalina.Session |
findSession(String id) |
String |
getConfigPath() |
org.redisson.api.RMap<String,Object> |
getMap(String sessionId) |
org.redisson.api.RedissonClient |
getRedisson() |
int |
getRejectedSessions() |
void |
load() |
void |
remove(org.apache.catalina.Session session) |
void |
removeLifecycleListener(org.apache.catalina.LifecycleListener listener) |
void |
setConfigPath(String configPath) |
void |
setRejectedSessions(int sessions) |
void |
start() |
void |
stop() |
void |
unload() |
add, addPropertyChangeListener, backgroundProcess, changeSessionId, createSession, destroy, expireSession, findSessions, generateSessionId, getActiveSessions, getAlgorithm, getClassName, getContainer, getCreationTime, getCreationTimestamp, getDigest, getDistributable, getDomain, getDuplicates, getEngine, getEntropy, getExpiredSessions, getInfo, getJvmRoute, getLastAccessedTime, getLastAccessedTimestamp, getMaxActive, getMaxInactiveInterval, getName, getNewSession, getObjectName, getProcessExpiresFrequency, getProcessingTime, getRandom, getRandomBytes, getRandomClass, getRandomFile, getSession, getSessionAttribute, getSessionAttributeNameFilter, getSessionAttributeNamePattern, getSessionAttributeValueClassNameFilter, getSessionAttributeValueClassNamePattern, getSessionAverageAliveTime, getSessionCounter, getSessionCreateRate, getSessionExpireRate, getSessionIdLength, getSessionMaxAliveTime, getWarnOnSessionAttributeFilterFailure, init, listSessionIds, postDeregister, postRegister, preDeregister, preRegister, processExpires, removePropertyChangeListener, setAlgorithm, setContainer, setDistributable, setDuplicates, setEntropy, setExpiredSessions, setMaxActive, setMaxInactiveInterval, setProcessExpiresFrequency, setProcessingTime, setRandomClass, setRandomFile, setSessionAttributeNameFilter, setSessionAttributeValueClassNameFilter, setSessionAverageAliveTime, setSessionCounter, setSessionIdLength, setSessionMaxAliveTime, setWarnOnSessionAttributeFilterFailure, willAttributeDistribute
public void setConfigPath(String configPath)
public String getConfigPath()
public int getRejectedSessions()
getRejectedSessions
in interface org.apache.catalina.Manager
public void load() throws ClassNotFoundException, IOException
load
in interface org.apache.catalina.Manager
ClassNotFoundException
IOException
public void setRejectedSessions(int sessions)
setRejectedSessions
in interface org.apache.catalina.Manager
public void unload() throws IOException
unload
in interface org.apache.catalina.Manager
IOException
public void addLifecycleListener(org.apache.catalina.LifecycleListener listener)
addLifecycleListener
in interface org.apache.catalina.Lifecycle
public org.apache.catalina.LifecycleListener[] findLifecycleListeners()
findLifecycleListeners
in interface org.apache.catalina.Lifecycle
public void removeLifecycleListener(org.apache.catalina.LifecycleListener listener)
removeLifecycleListener
in interface org.apache.catalina.Lifecycle
public org.apache.catalina.Session createSession(String sessionId)
createSession
in interface org.apache.catalina.Manager
createSession
in class org.apache.catalina.session.ManagerBase
public org.apache.catalina.Session findSession(String id) throws IOException
findSession
in interface org.apache.catalina.Manager
findSession
in class org.apache.catalina.session.ManagerBase
IOException
public org.apache.catalina.Session createEmptySession()
createEmptySession
in interface org.apache.catalina.Manager
createEmptySession
in class org.apache.catalina.session.ManagerBase
public void remove(org.apache.catalina.Session session)
remove
in interface org.apache.catalina.Manager
remove
in class org.apache.catalina.session.ManagerBase
public org.redisson.api.RedissonClient getRedisson()
public void start() throws org.apache.catalina.LifecycleException
start
in interface org.apache.catalina.Lifecycle
org.apache.catalina.LifecycleException
public void stop() throws org.apache.catalina.LifecycleException
stop
in interface org.apache.catalina.Lifecycle
org.apache.catalina.LifecycleException
Copyright © 2014–2017 The Redisson Project. All rights reserved.