Class AbstractSession
java.lang.Object
org.springframework.session.data.gemfire.support.AbstractSession
- All Implemented Interfaces:
org.springframework.session.Session
- Direct Known Subclasses:
SessionIdHolder
Abstract base class for implementations of the
Session
interface in order to simplify the implementation
of various Session
types and their capabilities.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
getAttribute
(String attributeName) <T> T
getAttributeOrDefault
(String name, T defaultValue) getId()
<T> T
getRequiredAttribute
(String name) boolean
void
removeAttribute
(String attributeName) void
setAttribute
(String attributeName, Object attributeValue) void
setLastAccessedTime
(Instant lastAccessedTime) void
setMaxInactiveInterval
(Duration interval)
-
Field Details
-
NOT_IMPLEMENTED
- See Also:
-
-
Constructor Details
-
AbstractSession
public AbstractSession()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceorg.springframework.session.Session
-
setAttribute
- Specified by:
setAttribute
in interfaceorg.springframework.session.Session
-
getAttribute
- Specified by:
getAttribute
in interfaceorg.springframework.session.Session
-
getAttributeOrDefault
- Specified by:
getAttributeOrDefault
in interfaceorg.springframework.session.Session
-
getRequiredAttribute
- Specified by:
getRequiredAttribute
in interfaceorg.springframework.session.Session
-
getAttributeNames
- Specified by:
getAttributeNames
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
-
setLastAccessedTime
- Specified by:
setLastAccessedTime
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
-
changeSessionId
- Specified by:
changeSessionId
in interfaceorg.springframework.session.Session
-
removeAttribute
- Specified by:
removeAttribute
in interfaceorg.springframework.session.Session
-