Class SessionIdHolder
java.lang.Object
org.springframework.session.data.gemfire.support.AbstractSession
org.springframework.session.data.gemfire.support.SessionIdHolder
- All Implemented Interfaces:
org.springframework.session.Session
SessionIdHolder
class is a Spring Session Session
implementation that only holds
the ID
of the Session
.
This implementation is only used in case Apache Geode or Pivotal GemFire returns a null (old) value
in a Region
EntryEvent
triggered by a Operation.DESTROY
or Operation.INVALIDATE
operation.- Since:
- 2.0.0
- See Also:
-
EntryEvent
Operation
Region
SessionIdHolder
-
Field Summary
Fields inherited from class org.springframework.session.data.gemfire.support.AbstractSession
NOT_IMPLEMENTED
-
Constructor Summary
ConstructorDescriptionSessionIdHolder
(String sessionId) Constructs a new instance of theSessionIdHolder
initialized with the givensession ID
. -
Method Summary
Modifier and TypeMethodDescriptionstatic SessionIdHolder
Factory method to create an instance of theSessionIdHolder
initialized with the givensession ID
.boolean
getId()
Returns theID
of thisSession
.int
hashCode()
toString()
Methods inherited from class org.springframework.session.data.gemfire.support.AbstractSession
changeSessionId, getAttribute, getAttributeNames, getAttributeOrDefault, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getRequiredAttribute, isExpired, removeAttribute, setAttribute, setLastAccessedTime, setMaxInactiveInterval
-
Constructor Details
-
SessionIdHolder
Constructs a new instance of theSessionIdHolder
initialized with the givensession ID
.- Parameters:
sessionId
-String
containing the session ID used to initialize the new instance ofSessionIdHolder
.- Throws:
IllegalArgumentException
- if session ID is null or empty.
-
-
Method Details
-
create
Factory method to create an instance of theSessionIdHolder
initialized with the givensession ID
.- Parameters:
sessionId
-String
containing the session ID used to initialize the new instance ofSessionIdHolder
.- Returns:
- a new instance of
SessionIdHolder
initialized with the givensession ID
. - Throws:
IllegalArgumentException
- if session ID is null or empty.- See Also:
-
getId
Returns theID
of thisSession
.- Specified by:
getId
in interfaceorg.springframework.session.Session
- Overrides:
getId
in classAbstractSession
- Returns:
- the
ID
of thisSession
.
-
equals
-
hashCode
public int hashCode() -
toString
-