public static class AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes
extends java.util.AbstractMap<java.lang.String,java.lang.Object>
AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes class is a container for Session attributes implementing
both the DataSerializable and Delta Pivotal GemFire interfaces for efficient
storage and distribution (replication) in GemFire. Additionally, GemFireSessionAttributes
extends AbstractMap providing Map-like behavior since attributes of a Session
are effectively a name to value mapping.AbstractMap,
DataSerializable,
DataSerializer,
Delta| Modifier | Constructor and Description |
|---|---|
protected |
GemFireSessionAttributes()
Constructs a new instance of
AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes. |
protected |
GemFireSessionAttributes(java.lang.Object lock)
Constructs a new instance of
AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes initialized with the given lock
to use to guard against concurrent access by multiple Threads. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
commit() |
<T extends AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes> |
configureWith(IsDirtyPredicate dirtyPredicate) |
static AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes |
create() |
static AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes |
create(java.lang.Object lock) |
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
entrySet() |
void |
from(AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes sessionAttributes) |
void |
from(java.util.Map<java.lang.String,java.lang.Object> map) |
void |
from(org.springframework.session.Session session) |
<T> T |
getAttribute(java.lang.String attributeName) |
java.util.Set<java.lang.String> |
getAttributeNames() |
protected IsDirtyPredicate |
getIsDirtyPredicate() |
java.lang.Object |
getLock()
Returns the
Object used as the lock guarding the methods of this object
from concurrent access by multiple Threads. |
boolean |
hasDelta() |
java.lang.Object |
removeAttribute(java.lang.String attributeName) |
protected java.util.function.BiFunction<java.lang.String,java.lang.Object,java.lang.Boolean> |
sessionAttributesChangeInterceptor() |
java.lang.Object |
setAttribute(java.lang.String attributeName,
java.lang.Object attributeValue) |
protected void |
setIsDirtyPredicate(IsDirtyPredicate dirtyPredicate) |
java.lang.String |
toString() |
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, valuesprotected GemFireSessionAttributes()
AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes.protected GemFireSessionAttributes(@Nullable
java.lang.Object lock)
AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes initialized with the given lock
to use to guard against concurrent access by multiple Threads.lock - Object used as the mutex to guard the operations of this object
from concurrent access by multiple Threads.public static AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes create()
public static AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes create(java.lang.Object lock)
public java.lang.Object getLock()
Object used as the lock guarding the methods of this object
from concurrent access by multiple Threads.lock guarding the methods of this object from concurrent access
by multiple Threads.protected void setIsDirtyPredicate(IsDirtyPredicate dirtyPredicate)
protected IsDirtyPredicate getIsDirtyPredicate()
public java.lang.Object setAttribute(java.lang.String attributeName,
java.lang.Object attributeValue)
public java.lang.Object removeAttribute(java.lang.String attributeName)
public <T> T getAttribute(java.lang.String attributeName)
public java.util.Set<java.lang.String> getAttributeNames()
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
entrySet in interface java.util.Map<java.lang.String,java.lang.Object>entrySet in class java.util.AbstractMap<java.lang.String,java.lang.Object>protected java.util.function.BiFunction<java.lang.String,java.lang.Object,java.lang.Boolean> sessionAttributesChangeInterceptor()
protected void commit()
public <T extends AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes> T configureWith(IsDirtyPredicate dirtyPredicate)
public void from(org.springframework.session.Session session)
public void from(java.util.Map<java.lang.String,java.lang.Object> map)
public void from(AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes sessionAttributes)
public boolean hasDelta()
public java.lang.String toString()
toString in class java.util.AbstractMap<java.lang.String,java.lang.Object>