Spring Session for VMware GemFire
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:
-
EntryEventOperationRegionSessionIdHolder
-
Field Summary
Fields inherited from class org.springframework.session.data.gemfire.support.AbstractSession
NOT_IMPLEMENTED -
Constructor Summary
ConstructorsConstructorDescriptionSessionIdHolder(String sessionId) Constructs a new instance of theSessionIdHolderinitialized with the givensession ID. -
Method Summary
Modifier and TypeMethodDescriptionstatic SessionIdHolderFactory method to create an instance of theSessionIdHolderinitialized with the givensession ID.booleangetId()Returns theIDof thisSession.inthashCode()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 theSessionIdHolderinitialized with the givensession ID.- Parameters:
sessionId-Stringcontaining 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 theSessionIdHolderinitialized with the givensession ID.- Parameters:
sessionId-Stringcontaining the session ID used to initialize the new instance ofSessionIdHolder.- Returns:
- a new instance of
SessionIdHolderinitialized with the givensession ID. - Throws:
IllegalArgumentException- if session ID is null or empty.- See Also:
-
getId
Returns theIDof thisSession.- Specified by:
getIdin interfaceorg.springframework.session.Session- Overrides:
getIdin classAbstractSession- Returns:
- the
IDof thisSession.
-
equals
-
hashCode
public int hashCode() -
toString
-