public static class AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes extends AbstractMap<String,Object> implements com.gemstone.gemfire.DataSerializable, com.gemstone.gemfire.Delta
DataSerializable
and Delta
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
,
Serialized FormAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected static boolean |
DEFAULT_ALLOW_JAVA_SERIALIZATION |
Modifier | Constructor and Description |
---|---|
protected |
GemFireSessionAttributes() |
protected |
GemFireSessionAttributes(Object lock) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowJavaSerialization() |
Set<Map.Entry<String,Object>> |
entrySet() |
void |
from(AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes sessionAttributes) |
void |
from(Session session) |
void |
fromData(DataInput in) |
void |
fromDelta(DataInput in) |
<T> T |
getAttribute(String attributeName) |
Set<String> |
getAttributeNames() |
boolean |
hasDelta() |
void |
removeAttribute(String attributeName) |
void |
setAttribute(String attributeName,
Object attributeValue) |
void |
toData(DataOutput out) |
void |
toDelta(DataOutput out) |
String |
toString() |
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected static final boolean DEFAULT_ALLOW_JAVA_SERIALIZATION
protected GemFireSessionAttributes()
protected GemFireSessionAttributes(Object lock)
public void removeAttribute(String attributeName)
public <T> T getAttribute(String attributeName)
protected boolean allowJavaSerialization()
public void from(Session session)
public void from(AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes sessionAttributes)
public void toData(DataOutput out) throws IOException
toData
in interface com.gemstone.gemfire.DataSerializable
IOException
public void fromData(DataInput in) throws IOException, ClassNotFoundException
fromData
in interface com.gemstone.gemfire.DataSerializable
IOException
ClassNotFoundException
public boolean hasDelta()
hasDelta
in interface com.gemstone.gemfire.Delta
public void toDelta(DataOutput out) throws IOException
toDelta
in interface com.gemstone.gemfire.Delta
IOException
public void fromDelta(DataInput in) throws com.gemstone.gemfire.InvalidDeltaException, IOException
fromDelta
in interface com.gemstone.gemfire.Delta
com.gemstone.gemfire.InvalidDeltaException
IOException
public String toString()
toString
in class AbstractMap<String,Object>