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 |
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 |
---|---|
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) |
String |
getName() |
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) |
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, 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
destroy, fireLifecycleEvent, getState, getStateName, init, setState, setState, start, stop
public void setConfigPath(String configPath)
public String getConfigPath()
public String getName()
getName
in class org.apache.catalina.session.ManagerBase
public int getRejectedSessions()
getRejectedSessions
in interface org.apache.catalina.Manager
getRejectedSessions
in class org.apache.catalina.session.ManagerBase
public void load() throws ClassNotFoundException, IOException
load
in interface org.apache.catalina.Manager
ClassNotFoundException
IOException
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
addLifecycleListener
in class org.apache.catalina.util.LifecycleBase
public org.apache.catalina.LifecycleListener[] findLifecycleListeners()
findLifecycleListeners
in interface org.apache.catalina.Lifecycle
findLifecycleListeners
in class org.apache.catalina.util.LifecycleBase
public void removeLifecycleListener(org.apache.catalina.LifecycleListener listener)
removeLifecycleListener
in interface org.apache.catalina.Lifecycle
removeLifecycleListener
in class org.apache.catalina.util.LifecycleBase
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.