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:
-
Field Summary
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, sm, support, thisAccessedTime
Fields inherited from interface org.apache.catalina.Session
SESSION_ACTIVATED_EVENT, SESSION_CREATED_EVENT, SESSION_DESTROYED_EVENT, SESSION_PASSIVATED_EVENT
-
Constructor Summary
ConstructorDescriptionRedissonSession
(RedissonSessionManager manager, RedissonSessionManager.ReadMode readMode, RedissonSessionManager.UpdateMode updateMode, boolean broadcastSessionEvents, boolean broadcastSessionUpdates) -
Method Summary
Modifier and TypeMethodDescriptionvoid
access()
protected AttributesPutAllMessage
createPutAllMessage
(Map<String, Object> newMap) void
delete()
void
void
endUsage()
protected void
getAttribute
(String name) long
String[]
void
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
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, getThisAccessedTime, getThisAccessedTimeInternal, invalidate, isAttributeDistributable, isNew, isValid, isValidInternal, keys, passivate, readObjectData, removeAttribute, removeAttribute, removeNote, removeSessionListener, setAttribute, setId, setId, setManager, setNote, tellChangedSessionId, tellNew, toString, writeObjectData
-
Field Details
-
ATTRS
-
-
Constructor Details
-
RedissonSession
public RedissonSession(RedissonSessionManager manager, RedissonSessionManager.ReadMode readMode, RedissonSessionManager.UpdateMode updateMode, boolean broadcastSessionEvents, boolean broadcastSessionUpdates)
-
-
Method Details
-
getAttribute
- Specified by:
getAttribute
in interfacejakarta.servlet.http.HttpSession
- Overrides:
getAttribute
in classorg.apache.catalina.session.StandardSession
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacejakarta.servlet.http.HttpSession
- Overrides:
getAttributeNames
in classorg.apache.catalina.session.StandardSession
-
getValueNames
-
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
-
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
- Specified by:
setPrincipal
in interfaceorg.apache.catalina.Session
- Overrides:
setPrincipal
in classorg.apache.catalina.session.StandardSession
-
setAuthType
- 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
-
superSetAttribute
-
setAttribute
- Overrides:
setAttribute
in classorg.apache.catalina.session.StandardSession
-
superRemoveAttributeInternal
-
getIdleTimeInternal
public long getIdleTimeInternal()- Specified by:
getIdleTimeInternal
in interfaceorg.apache.catalina.Session
- Overrides:
getIdleTimeInternal
in classorg.apache.catalina.session.StandardSession
-
removeAttributeInternal
- Overrides:
removeAttributeInternal
in classorg.apache.catalina.session.StandardSession
-
save
public void save() -
load
-
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()
-