Package org.redisson.tomcat
Class RedissonSession
- java.lang.Object
-
- org.apache.catalina.session.StandardSession
-
- org.redisson.tomcat.RedissonSession
-
- All Implemented Interfaces:
jakarta.servlet.http.HttpSession
,Serializable
,org.apache.catalina.Session
public class RedissonSession extends org.apache.catalina.session.StandardSession
Redisson Session object for Apache Tomcat- Author:
- Nikita Koksharov
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>
ATTRS
-
Fields inherited from class org.apache.catalina.session.StandardSession
accessCount, activityCheck, attributes, authType, creationTime, EMPTY_ARRAY, expiring, facade, id, isNew, isValid, lastAccessAtStart, lastAccessedTime, listeners, manager, maxInactiveInterval, notes, principal, sessionContext, sm, support, thisAccessedTime
-
-
Constructor Summary
Constructors Constructor Description RedissonSession(RedissonSessionManager manager, RedissonSessionManager.ReadMode readMode, RedissonSessionManager.UpdateMode updateMode, boolean broadcastSessionEvents, boolean broadcastSessionUpdates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
access()
protected AttributesPutAllMessage
createPutAllMessage(Map<String,Object> newMap)
void
delete()
void
endAccess()
void
endUsage()
protected void
expireSession()
Object
getAttribute(String name)
Enumeration<String>
getAttributeNames()
long
getIdleTimeInternal()
String[]
getValueNames()
void
load(Map<String,Object> attrs)
void
recycle()
protected void
removeAttributeInternal(String name, boolean notify)
void
save()
void
setAttribute(String name, Object value, boolean notify)
void
setAuthType(String authType)
void
setCreationTime(long time)
void
setMaxInactiveInterval(int interval)
void
setNew(boolean isNew)
void
setPrincipal(Principal principal)
void
setValid(boolean isValid)
void
startUsage()
void
superRemoveAttributeInternal(String name, boolean notify)
void
superSetAttribute(String name, Object value, boolean notify)
-
Methods inherited from class org.apache.catalina.session.StandardSession
activate, addSessionListener, doReadObject, doWriteObject, exclude, expire, expire, fireSessionEvent, getAuthType, getCreationTime, getCreationTimeInternal, getId, getIdInternal, getIdleTime, getLastAccessedTime, getLastAccessedTimeInternal, getManager, getMaxInactiveInterval, getNote, getNoteNames, getPrincipal, getServletContext, getSession, getSessionContext, getThisAccessedTime, getThisAccessedTimeInternal, getValue, invalidate, isAttributeDistributable, isNew, isValid, isValidInternal, keys, passivate, putValue, readObjectData, removeAttribute, removeAttribute, removeNote, removeSessionListener, removeValue, setAttribute, setId, setId, setManager, setNote, tellChangedSessionId, tellNew, toString, writeObjectData
-
-
-
-
Constructor Detail
-
RedissonSession
public RedissonSession(RedissonSessionManager manager, RedissonSessionManager.ReadMode readMode, RedissonSessionManager.UpdateMode updateMode, boolean broadcastSessionEvents, boolean broadcastSessionUpdates)
-
-
Method Detail
-
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttribute
in interfacejakarta.servlet.http.HttpSession
- Overrides:
getAttribute
in classorg.apache.catalina.session.StandardSession
-
getAttributeNames
public Enumeration<String> getAttributeNames()
- Specified by:
getAttributeNames
in interfacejakarta.servlet.http.HttpSession
- Overrides:
getAttributeNames
in classorg.apache.catalina.session.StandardSession
-
getValueNames
public String[] getValueNames()
- Specified by:
getValueNames
in interfacejakarta.servlet.http.HttpSession
- Overrides:
getValueNames
in classorg.apache.catalina.session.StandardSession
-
delete
public void delete()
-
setCreationTime
public void setCreationTime(long time)
- Specified by:
setCreationTime
in interfaceorg.apache.catalina.Session
- Overrides:
setCreationTime
in classorg.apache.catalina.session.StandardSession
-
access
public void access()
- Specified by:
access
in interfaceorg.apache.catalina.Session
- Overrides:
access
in classorg.apache.catalina.session.StandardSession
-
expireSession
protected void expireSession()
-
createPutAllMessage
protected AttributesPutAllMessage createPutAllMessage(Map<String,Object> newMap)
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval)
- Specified by:
setMaxInactiveInterval
in interfacejakarta.servlet.http.HttpSession
- Specified by:
setMaxInactiveInterval
in interfaceorg.apache.catalina.Session
- Overrides:
setMaxInactiveInterval
in classorg.apache.catalina.session.StandardSession
-
setPrincipal
public void setPrincipal(Principal principal)
- Specified by:
setPrincipal
in interfaceorg.apache.catalina.Session
- Overrides:
setPrincipal
in classorg.apache.catalina.session.StandardSession
-
setAuthType
public void setAuthType(String authType)
- Specified by:
setAuthType
in interfaceorg.apache.catalina.Session
- Overrides:
setAuthType
in classorg.apache.catalina.session.StandardSession
-
setValid
public void setValid(boolean isValid)
- Specified by:
setValid
in interfaceorg.apache.catalina.Session
- Overrides:
setValid
in classorg.apache.catalina.session.StandardSession
-
setNew
public void setNew(boolean isNew)
- Specified by:
setNew
in interfaceorg.apache.catalina.Session
- Overrides:
setNew
in classorg.apache.catalina.session.StandardSession
-
endAccess
public void endAccess()
- Specified by:
endAccess
in interfaceorg.apache.catalina.Session
- Overrides:
endAccess
in classorg.apache.catalina.session.StandardSession
-
setAttribute
public void setAttribute(String name, Object value, boolean notify)
- Overrides:
setAttribute
in classorg.apache.catalina.session.StandardSession
-
superRemoveAttributeInternal
public void superRemoveAttributeInternal(String name, boolean notify)
-
getIdleTimeInternal
public long getIdleTimeInternal()
- Specified by:
getIdleTimeInternal
in interfaceorg.apache.catalina.Session
- Overrides:
getIdleTimeInternal
in classorg.apache.catalina.session.StandardSession
-
removeAttributeInternal
protected void removeAttributeInternal(String name, boolean notify)
- Overrides:
removeAttributeInternal
in classorg.apache.catalina.session.StandardSession
-
save
public void save()
-
recycle
public void recycle()
- Specified by:
recycle
in interfaceorg.apache.catalina.Session
- Overrides:
recycle
in classorg.apache.catalina.session.StandardSession
-
startUsage
public void startUsage()
-
endUsage
public void endUsage()
-
-