public static class AbstractGemFireOperationsSessionRepository.GemFireSession<T extends AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes>
extends java.lang.Object
implements java.lang.Comparable<org.springframework.session.Session>, org.springframework.session.Session
AbstractGemFireOperationsSessionRepository.GemFireSession is a Abstract Data Type (ADT) for a Spring Session that stores and manages
Session state in Apache Geode or Pivotal GemFire.Comparable,
Session| Modifier and Type | Field and Description |
|---|---|
protected static java.time.Duration |
DEFAULT_MAX_INACTIVE_INTERVAL |
protected static java.lang.String |
SPRING_SECURITY_CONTEXT |
| Modifier | Constructor and Description |
|---|---|
protected |
GemFireSession() |
protected |
GemFireSession(org.springframework.session.Session session) |
protected |
GemFireSession(java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
changeSessionId() |
void |
clearDelta() |
int |
compareTo(org.springframework.session.Session session) |
static AbstractGemFireOperationsSessionRepository.GemFireSession |
copy(org.springframework.session.Session session) |
static AbstractGemFireOperationsSessionRepository.GemFireSession |
create() |
static AbstractGemFireOperationsSessionRepository.GemFireSession |
create(java.time.Duration maxInactiveInterval) |
boolean |
equals(java.lang.Object obj) |
static <T extends AbstractGemFireOperationsSessionRepository.GemFireSession> |
from(org.springframework.session.Session session) |
<T> T |
getAttribute(java.lang.String attributeName) |
java.util.Set<java.lang.String> |
getAttributeNames() |
T |
getAttributes() |
java.time.Instant |
getCreationTime() |
java.lang.String |
getId() |
java.time.Instant |
getLastAccessedTime() |
java.time.Duration |
getMaxInactiveInterval() |
java.lang.String |
getPrincipalName() |
boolean |
hasDelta() |
int |
hashCode() |
boolean |
isExpired() |
protected T |
newSessionAttributes(java.lang.Object lock) |
void |
removeAttribute(java.lang.String attributeName) |
void |
setAttribute(java.lang.String attributeName,
java.lang.Object attributeValue) |
void |
setLastAccessedTime(java.time.Instant lastAccessedTime) |
void |
setMaxInactiveInterval(java.time.Duration maxInactiveIntervalInSeconds) |
void |
setPrincipalName(java.lang.String principalName) |
java.lang.String |
toString() |
protected void |
triggerDelta() |
protected void |
triggerDelta(boolean condition) |
protected static final java.time.Duration DEFAULT_MAX_INACTIVE_INTERVAL
protected static final java.lang.String SPRING_SECURITY_CONTEXT
protected GemFireSession()
protected GemFireSession(java.lang.String id)
protected GemFireSession(org.springframework.session.Session session)
public static AbstractGemFireOperationsSessionRepository.GemFireSession copy(org.springframework.session.Session session)
public static AbstractGemFireOperationsSessionRepository.GemFireSession create()
public static AbstractGemFireOperationsSessionRepository.GemFireSession create(java.time.Duration maxInactiveInterval)
public static <T extends AbstractGemFireOperationsSessionRepository.GemFireSession> T from(org.springframework.session.Session session)
protected T newSessionAttributes(java.lang.Object lock)
public java.lang.String changeSessionId()
changeSessionId in interface org.springframework.session.Sessionpublic void clearDelta()
public boolean hasDelta()
protected void triggerDelta()
protected void triggerDelta(boolean condition)
public java.lang.String getId()
getId in interface org.springframework.session.Sessionpublic void setAttribute(java.lang.String attributeName,
java.lang.Object attributeValue)
setAttribute in interface org.springframework.session.Sessionpublic void removeAttribute(java.lang.String attributeName)
removeAttribute in interface org.springframework.session.Sessionpublic <T> T getAttribute(java.lang.String attributeName)
getAttribute in interface org.springframework.session.Sessionpublic java.util.Set<java.lang.String> getAttributeNames()
getAttributeNames in interface org.springframework.session.Sessionpublic T getAttributes()
public java.time.Instant getCreationTime()
getCreationTime in interface org.springframework.session.Sessionpublic boolean isExpired()
isExpired in interface org.springframework.session.Sessionpublic void setLastAccessedTime(java.time.Instant lastAccessedTime)
setLastAccessedTime in interface org.springframework.session.Sessionpublic java.time.Instant getLastAccessedTime()
getLastAccessedTime in interface org.springframework.session.Sessionpublic void setMaxInactiveInterval(java.time.Duration maxInactiveIntervalInSeconds)
setMaxInactiveInterval in interface org.springframework.session.Sessionpublic java.time.Duration getMaxInactiveInterval()
getMaxInactiveInterval in interface org.springframework.session.Sessionpublic void setPrincipalName(java.lang.String principalName)
public java.lang.String getPrincipalName()
public int compareTo(org.springframework.session.Session session)
compareTo in interface java.lang.Comparable<org.springframework.session.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