public final class SessionIdHolder extends AbstractSession
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.EntryEvent
,
Operation
,
Region
,
SessionIdHolder
NOT_IMPLEMENTED
Constructor and Description |
---|
SessionIdHolder(java.lang.String sessionId)
Constructs a new instance of the
SessionIdHolder initialized with
the given session ID . |
Modifier and Type | Method and Description |
---|---|
static SessionIdHolder |
create(java.lang.String sessionId)
Factory method to create an instance of the
SessionIdHolder initialized with
the given session ID . |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getId()
Returns the
ID of this Session . |
int |
hashCode() |
java.lang.String |
toString() |
changeSessionId, getAttribute, getAttributeNames, getAttributeOrDefault, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getRequiredAttribute, isExpired, removeAttribute, setAttribute, setLastAccessedTime, setMaxInactiveInterval
public SessionIdHolder(java.lang.String sessionId)
SessionIdHolder
initialized with
the given session ID
.sessionId
- String
containing the session ID used to initialize
the new instance of SessionIdHolder
.java.lang.IllegalArgumentException
- if session ID is null or empty.public static SessionIdHolder create(java.lang.String sessionId)
SessionIdHolder
initialized with
the given session ID
.sessionId
- String
containing the session ID used to initialize
the new instance of SessionIdHolder
.SessionIdHolder
initialized with
the given session ID
.java.lang.IllegalArgumentException
- if session ID is null or empty.SessionIdHolder(String)
public java.lang.String getId()
ID
of this Session
.getId
in interface org.springframework.session.Session
getId
in class AbstractSession
ID
of this Session
.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object