Class RedisIndexedSessionRepository.RedisSession
java.lang.Object
org.springframework.session.data.redis.RedisIndexedSessionRepository.RedisSession
- All Implemented Interfaces:
org.springframework.session.Session
- Enclosing class:
- RedisIndexedSessionRepository
public final class RedisIndexedSessionRepository.RedisSession
extends Object
implements org.springframework.session.Session
A custom implementation of
Session that uses a MapSession as the
basis for its mapping. It keeps track of any attributes that have changed. When
saveDelta() is invoked all the
attributes that have been changed will be persisted.-
Method Summary
Modifier and TypeMethodDescription<T> TgetAttribute(String attributeName) getId()booleanvoidremoveAttribute(String attributeName) voidsetAttribute(String attributeName, Object attributeValue) voidsetLastAccessedTime(Instant lastAccessedTime) voidsetMaxInactiveInterval(Duration interval) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.session.Session
getAttributeOrDefault, getRequiredAttribute
-
Method Details
-
setLastAccessedTime
- Specified by:
setLastAccessedTimein interfaceorg.springframework.session.Session
-
isExpired
public boolean isExpired()- Specified by:
isExpiredin interfaceorg.springframework.session.Session
-
getCreationTime
- Specified by:
getCreationTimein interfaceorg.springframework.session.Session
-
getId
- Specified by:
getIdin interfaceorg.springframework.session.Session
-
changeSessionId
- Specified by:
changeSessionIdin interfaceorg.springframework.session.Session
-
getLastAccessedTime
- Specified by:
getLastAccessedTimein interfaceorg.springframework.session.Session
-
setMaxInactiveInterval
- Specified by:
setMaxInactiveIntervalin interfaceorg.springframework.session.Session
-
getMaxInactiveInterval
- Specified by:
getMaxInactiveIntervalin interfaceorg.springframework.session.Session
-
getAttribute
- Specified by:
getAttributein interfaceorg.springframework.session.Session
-
getAttributeNames
- Specified by:
getAttributeNamesin interfaceorg.springframework.session.Session
-
setAttribute
- Specified by:
setAttributein interfaceorg.springframework.session.Session
-
removeAttribute
- Specified by:
removeAttributein interfaceorg.springframework.session.Session
-