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
ConstructorDescriptionInfinispanSession
(org.springframework.session.MapSession cached, boolean isNew) -
Method Summary
Modifier and TypeMethodDescription<T> T
getAttribute
(String attributeName) getId()
boolean
void
removeAttribute
(String attributeName) void
setAttribute
(String attributeName, Object attributeValue) void
setLastAccessedTime
(Instant lastAccessedTime) void
setMaxInactiveInterval
(Duration interval) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
setLastAccessedTime
in interfaceorg.springframework.session.Session
-
isExpired
public boolean isExpired()- Specified by:
isExpired
in interfaceorg.springframework.session.Session
-
getCreationTime
- Specified by:
getCreationTime
in interfaceorg.springframework.session.Session
-
getId
- Specified by:
getId
in interfaceorg.springframework.session.Session
-
changeSessionId
- Specified by:
changeSessionId
in interfaceorg.springframework.session.Session
-
getLastAccessedTime
- Specified by:
getLastAccessedTime
in interfaceorg.springframework.session.Session
-
setMaxInactiveInterval
- Specified by:
setMaxInactiveInterval
in interfaceorg.springframework.session.Session
-
getMaxInactiveInterval
- Specified by:
getMaxInactiveInterval
in interfaceorg.springframework.session.Session
-
getAttribute
- Specified by:
getAttribute
in interfaceorg.springframework.session.Session
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceorg.springframework.session.Session
-
setAttribute
- Specified by:
setAttribute
in interfaceorg.springframework.session.Session
-
removeAttribute
- Specified by:
removeAttribute
in interfaceorg.springframework.session.Session
-