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,
SessionIdHolderNOT_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, setMaxInactiveIntervalpublic 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.SessiongetId in class AbstractSessionID of this Session.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object