public class RedissonSessionManager
extends org.apache.catalina.session.ManagerBase
| Modifier and Type | Class and Description |
|---|---|
static class |
RedissonSessionManager.ReadMode |
static class |
RedissonSessionManager.UpdateMode |
duplicates, expiredSessions, maxActive, maxActiveSessions, processExpiresFrequency, processingTime, rejectedSessions, secureRandomAlgorithm, secureRandomClass, secureRandomProvider, sessionCounter, sessionCreationTiming, sessionExpirationTiming, sessionIdGenerator, sessionIdGeneratorClass, 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 |
|---|---|
void |
add(org.apache.catalina.Session session) |
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 |
getNodeId() |
String |
getReadMode() |
org.redisson.api.RedissonClient |
getRedisson() |
org.redisson.api.RTopic |
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 |
shutdownRedisson() |
protected void |
startInternal() |
protected void |
stopInternal() |
void |
store(javax.servlet.http.HttpSession session) |
void |
unload() |
addPropertyChangeListener, backgroundProcess, changeSessionId, changeSessionId, changeSessionId, expireSession, findSessions, generateSessionId, getActiveSessions, getClassName, getContext, getCreationTime, getCreationTimestamp, getDomainInternal, getDuplicates, getEngine, getExpiredSessions, getJvmRoute, getLastAccessedTime, getLastAccessedTimestamp, getMaxActive, getMaxActiveSessions, getNewSession, getNotifyAttributeListenerOnUnchangedValue, getNotifyBindingListenerOnUnchangedValue, getObjectNameKeyProperties, getProcessExpiresFrequency, getProcessingTime, getRejectedSessions, getSecureRandomAlgorithm, getSecureRandomClass, getSecureRandomProvider, getSession, getSessionAttribute, getSessionAttributeNameFilter, getSessionAttributeNamePattern, getSessionAttributeValueClassNameFilter, getSessionAttributeValueClassNamePattern, getSessionAverageAliveTime, getSessionCounter, getSessionCreateRate, getSessionExpireRate, getSessionIdGenerator, getSessionMaxAliveTime, getThisAccessedTime, getThisAccessedTimestamp, getWarnOnSessionAttributeFilterFailure, initInternal, listSessionIds, processExpires, remove, removePropertyChangeListener, setContext, setDuplicates, setExpiredSessions, setMaxActive, setMaxActiveSessions, setNotifyAttributeListenerOnUnchangedValue, setNotifyBindingListenerOnUnchangedValue, setProcessExpiresFrequency, setProcessingTime, setSecureRandomAlgorithm, setSecureRandomClass, setSecureRandomProvider, setSessionAttributeNameFilter, setSessionAttributeValueClassNameFilter, setSessionCounter, setSessionIdGenerator, setSessionMaxAliveTime, setWarnOnSessionAttributeFilterFailure, toString, updateSessionMaxAliveTime, willAttributeDistributedestroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregisterpublic String getNodeId()
public 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 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 void add(org.apache.catalina.Session session)
add in interface org.apache.catalina.Manageradd 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.LifecycleExceptionprotected void shutdownRedisson()
public void store(javax.servlet.http.HttpSession session)
throws IOException
IOExceptionCopyright © 2014–2019 The Redisson Project. All rights reserved.