Class AbstractInfinispanSessionRepository.InfinispanSession
java.lang.Object
org.infinispan.spring.common.session.AbstractInfinispanSessionRepository.InfinispanSession
- All Implemented Interfaces:
org.springframework.session.Session
- Enclosing class:
- AbstractInfinispanSessionRepository
public final class AbstractInfinispanSessionRepository.InfinispanSession
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 if changes have been made since last save.-
Constructor Summary
ConstructorsConstructorDescriptionInfinispanSession(org.springframework.session.MapSession cached, boolean isNew) -
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
-
Constructor Details
-
InfinispanSession
public InfinispanSession(org.springframework.session.MapSession cached, boolean isNew)
-
-
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
-