Class AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes
java.lang.Object
java.util.AbstractMap<String,Object>
org.springframework.session.data.gemfire.AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes
- Direct Known Subclasses:
AbstractGemFireOperationsSessionRepository.DeltaCapableGemFireSessionAttributes
- Enclosing class:
- AbstractGemFireOperationsSessionRepository
public static class AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes
extends AbstractMap<String,Object>
The
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.- See Also:
-
AbstractMap
DataSerializable
DataSerializer
Delta
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ModifierConstructorDescriptionprotected
Constructs a new instance ofAbstractGemFireOperationsSessionRepository.GemFireSessionAttributes
.protected
Constructs a new instance ofAbstractGemFireOperationsSessionRepository.GemFireSessionAttributes
initialized with the givenlock
to use to guard against concurrent access by multipleThreads
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
commit()
configureWith
(IsDirtyPredicate dirtyPredicate) create()
entrySet()
void
void
from
(AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes sessionAttributes) void
from
(org.springframework.session.Session session) <T> T
getAttribute
(String attributeName) protected IsDirtyPredicate
getLock()
boolean
hasDelta()
removeAttribute
(String attributeName) protected BiFunction<String,
Object, Boolean> setAttribute
(String attributeName, Object attributeValue) protected void
setIsDirtyPredicate
(IsDirtyPredicate dirtyPredicate) toString()
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
GemFireSessionAttributes
protected GemFireSessionAttributes()Constructs a new instance ofAbstractGemFireOperationsSessionRepository.GemFireSessionAttributes
. -
GemFireSessionAttributes
Constructs a new instance ofAbstractGemFireOperationsSessionRepository.GemFireSessionAttributes
initialized with the givenlock
to use to guard against concurrent access by multipleThreads
.
-
-
Method Details
-
create
-
create
public static AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes create(Object lock) -
getLock
-
setIsDirtyPredicate
-
getIsDirtyPredicate
-
setAttribute
-
removeAttribute
-
getAttribute
-
getAttributeNames
-
entrySet
-
sessionAttributesChangeInterceptor
-
commit
protected void commit() -
configureWith
public <T extends AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes> T configureWith(IsDirtyPredicate dirtyPredicate) -
from
public void from(org.springframework.session.Session session) -
from
-
from
public void from(AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes sessionAttributes) -
hasDelta
public boolean hasDelta() -
toString
- Overrides:
toString
in classAbstractMap<String,
Object>
-