public class RedissonSessionManager
extends org.apache.catalina.session.ManagerBase
distributable, duplicates, expiredSessions, maxActive, maxActiveSessions, maxInactiveInterval, processExpiresFrequency, processingTime, rejectedSessions, secureRandomAlgorithm, secureRandomClass, secureRandomProvider, SESSION_ID_LENGTH_UNSET, sessionCounter, sessionCreationTiming, sessionExpirationTiming, sessionIdGenerator, sessionIdGeneratorClass, sessionIdLength, sessionMaxAliveTime, sessions, sm, support, TIMING_STATS_CACHE_SIZE
AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
Constructor and Description |
---|
RedissonSessionManager() |
Modifier and Type | Method and Description |
---|---|
org.apache.catalina.Session |
createEmptySession() |
org.apache.catalina.Session |
createSession(String sessionId) |
org.apache.catalina.Session |
findSession(String id) |
String |
getConfigPath() |
org.redisson.api.RMap<String,Object> |
getMap(String sessionId) |
String |
getName() |
org.redisson.api.RedissonClient |
getRedisson() |
void |
load() |
void |
remove(org.apache.catalina.Session session) |
void |
setConfigPath(String configPath) |
protected void |
startInternal() |
protected void |
stopInternal() |
void |
unload() |
add, addPropertyChangeListener, backgroundProcess, changeSessionId, changeSessionId, changeSessionId, expireSession, findSessions, generateSessionId, getActiveSessions, getClassName, getContainer, getContext, getCreationTime, getCreationTimestamp, getDistributable, getDomainInternal, getDuplicates, getEngine, getExpiredSessions, getJvmRoute, getLastAccessedTime, getLastAccessedTimestamp, getMaxActive, getMaxActiveSessions, getMaxInactiveInterval, getNewSession, getObjectNameKeyProperties, getProcessExpiresFrequency, getProcessingTime, getRejectedSessions, getSecureRandomAlgorithm, getSecureRandomClass, getSecureRandomProvider, getSession, getSessionAttribute, getSessionAttributeNameFilter, getSessionAttributeNamePattern, getSessionAttributeValueClassNameFilter, getSessionAttributeValueClassNamePattern, getSessionAverageAliveTime, getSessionCounter, getSessionCreateRate, getSessionExpireRate, getSessionIdGenerator, getSessionIdLength, getSessionMaxAliveTime, getThisAccessedTime, getThisAccessedTimestamp, getWarnOnSessionAttributeFilterFailure, initInternal, listSessionIds, processExpires, remove, removePropertyChangeListener, setContainer, setContext, setDistributable, setDuplicates, setExpiredSessions, setMaxActive, setMaxActiveSessions, setMaxInactiveInterval, setProcessExpiresFrequency, setProcessingTime, setSecureRandomAlgorithm, setSecureRandomClass, setSecureRandomProvider, setSessionAttributeNameFilter, setSessionAttributeValueClassNameFilter, setSessionCounter, setSessionIdGenerator, setSessionIdLength, setSessionMaxAliveTime, setWarnOnSessionAttributeFilterFailure, toString, updateSessionMaxAliveTime, willAttributeDistribute
destroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister
public void setConfigPath(String configPath)
public String getConfigPath()
public String getName()
getName
in class org.apache.catalina.session.ManagerBase
public void load() throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
public void unload() throws IOException
IOException
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()
protected void startInternal() throws org.apache.catalina.LifecycleException
startInternal
in class org.apache.catalina.session.ManagerBase
org.apache.catalina.LifecycleException
protected void stopInternal() throws org.apache.catalina.LifecycleException
stopInternal
in class org.apache.catalina.session.ManagerBase
org.apache.catalina.LifecycleException
Copyright © 2014–2017 The Redisson Project. All rights reserved.