Spring Session for VMware GemFire
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:
-
AbstractMapDataSerializableDataSerializerDelta
-
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
ConstructorsModifierConstructorDescriptionprotectedConstructs a new instance ofAbstractGemFireOperationsSessionRepository.GemFireSessionAttributes.protectedConstructs a new instance ofAbstractGemFireOperationsSessionRepository.GemFireSessionAttributesinitialized with the givenlockto use to guard against concurrent access by multipleThreads. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcommit()configureWith(IsDirtyPredicate dirtyPredicate) create()entrySet()voidvoidfrom(AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes sessionAttributes) voidfrom(org.springframework.session.Session session) <T> TgetAttribute(String attributeName) protected IsDirtyPredicategetLock()booleanhasDelta()removeAttribute(String attributeName) protected BiFunction<String,Object, Boolean> setAttribute(String attributeName, Object attributeValue) protected voidsetIsDirtyPredicate(IsDirtyPredicate dirtyPredicate) toString()Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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.GemFireSessionAttributesinitialized with the givenlockto 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:
toStringin classAbstractMap<String,Object>
-