public class RedissonSessionManager
extends org.apache.catalina.session.ManagerBase
| Modifier and Type | Class and Description |
|---|---|
static class |
RedissonSessionManager.ReadMode |
static class |
RedissonSessionManager.UpdateMode |
container, 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_SIZEAFTER_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 |
|---|---|
protected org.redisson.api.RedissonClient |
buildClient() |
org.apache.catalina.Session |
createEmptySession() |
org.apache.catalina.Session |
createSession(String sessionId) |
org.apache.catalina.Session |
findSession(String id) |
String |
getConfigPath() |
String |
getKeyPrefix() |
org.redisson.api.RMap<String,Object> |
getMap(String sessionId) |
String |
getName() |
String |
getReadMode() |
org.redisson.api.RedissonClient |
getRedisson() |
org.redisson.api.RTopic<AttributeMessage> |
getTopic() |
String |
getUpdateMode() |
void |
load() |
void |
remove(org.apache.catalina.Session session,
boolean update) |
void |
setConfigPath(String configPath) |
void |
setKeyPrefix(String keyPrefix) |
void |
setReadMode(String readMode) |
void |
setUpdateMode(String updateMode) |
protected void |
startInternal() |
protected void |
stopInternal() |
void |
store(javax.servlet.http.HttpSession session) |
void |
unload() |
add, addPropertyChangeListener, backgroundProcess, changeSessionId, expireSession, findSessions, generateSessionId, getActiveSessions, getClassName, getContainer, getCreationTime, getCreationTimestamp, getDistributable, getDomainInternal, getDuplicates, getEngine, getExpiredSessions, getInfo, 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, setDistributable, setDuplicates, setExpiredSessions, setMaxActive, setMaxActiveSessions, setMaxInactiveInterval, setProcessExpiresFrequency, setProcessingTime, setSecureRandomAlgorithm, setSecureRandomClass, setSecureRandomProvider, setSessionAttributeNameFilter, setSessionAttributeValueClassNameFilter, setSessionCounter, setSessionIdGenerator, setSessionIdLength, setSessionMaxAliveTime, setWarnOnSessionAttributeFilterFailure, toString, updateSessionMaxAliveTime, willAttributeDistributedestroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregisterpublic String getUpdateMode()
public void setUpdateMode(String updateMode)
public String getReadMode()
public void setReadMode(String readMode)
public void setConfigPath(String configPath)
public String getConfigPath()
public String getKeyPrefix()
public void setKeyPrefix(String keyPrefix)
public String getName()
getName in class org.apache.catalina.session.ManagerBasepublic void load()
throws ClassNotFoundException,
IOException
ClassNotFoundExceptionIOExceptionpublic void unload()
throws IOException
IOExceptionpublic org.apache.catalina.Session createSession(String sessionId)
createSession in interface org.apache.catalina.ManagercreateSession in class org.apache.catalina.session.ManagerBasepublic org.redisson.api.RTopic<AttributeMessage> getTopic()
public org.apache.catalina.Session findSession(String id) throws IOException
findSession in interface org.apache.catalina.ManagerfindSession in class org.apache.catalina.session.ManagerBaseIOExceptionpublic org.apache.catalina.Session createEmptySession()
createEmptySession in interface org.apache.catalina.ManagercreateEmptySession in class org.apache.catalina.session.ManagerBasepublic void remove(org.apache.catalina.Session session,
boolean update)
remove in interface org.apache.catalina.Managerremove in class org.apache.catalina.session.ManagerBasepublic org.redisson.api.RedissonClient getRedisson()
protected void startInternal()
throws org.apache.catalina.LifecycleException
startInternal in class org.apache.catalina.session.ManagerBaseorg.apache.catalina.LifecycleExceptionprotected org.redisson.api.RedissonClient buildClient()
throws org.apache.catalina.LifecycleException
org.apache.catalina.LifecycleExceptionprotected void stopInternal()
throws org.apache.catalina.LifecycleException
stopInternal in class org.apache.catalina.session.ManagerBaseorg.apache.catalina.LifecycleExceptionpublic void store(javax.servlet.http.HttpSession session)
throws IOException
IOExceptionCopyright © 2014–2018 The Redisson Project. All rights reserved.