public static class AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes
extends java.util.AbstractMap<java.lang.String,java.lang.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 Formjava.util.AbstractMap.SimpleEntry<K,V>, java.util.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(java.lang.Object lock) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowJavaSerialization() |
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
entrySet() |
void |
from(AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes sessionAttributes) |
void |
from(Session session) |
void |
fromData(java.io.DataInput in) |
void |
fromDelta(java.io.DataInput in) |
<T> T |
getAttribute(java.lang.String attributeName) |
java.util.Set<java.lang.String> |
getAttributeNames() |
boolean |
hasDelta() |
void |
removeAttribute(java.lang.String attributeName) |
void |
setAttribute(java.lang.String attributeName,
java.lang.Object attributeValue) |
void |
toData(java.io.DataOutput out) |
void |
toDelta(java.io.DataOutput out) |
java.lang.String |
toString() |
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
protected static final boolean DEFAULT_ALLOW_JAVA_SERIALIZATION
protected GemFireSessionAttributes()
protected GemFireSessionAttributes(java.lang.Object lock)
public void setAttribute(java.lang.String attributeName, java.lang.Object attributeValue)
public void removeAttribute(java.lang.String attributeName)
public <T> T getAttribute(java.lang.String attributeName)
public java.util.Set<java.lang.String> getAttributeNames()
protected boolean allowJavaSerialization()
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>
public void from(Session session)
public void from(AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes sessionAttributes)
public void toData(java.io.DataOutput out) throws java.io.IOException
toData
in interface com.gemstone.gemfire.DataSerializable
java.io.IOException
public void fromData(java.io.DataInput in) throws java.io.IOException, java.lang.ClassNotFoundException
fromData
in interface com.gemstone.gemfire.DataSerializable
java.io.IOException
java.lang.ClassNotFoundException
public boolean hasDelta()
hasDelta
in interface com.gemstone.gemfire.Delta
public void toDelta(java.io.DataOutput out) throws java.io.IOException
toDelta
in interface com.gemstone.gemfire.Delta
java.io.IOException
public void fromDelta(java.io.DataInput in) throws com.gemstone.gemfire.InvalidDeltaException, java.io.IOException
fromDelta
in interface com.gemstone.gemfire.Delta
com.gemstone.gemfire.InvalidDeltaException
java.io.IOException
public java.lang.String toString()
toString
in class java.util.AbstractMap<java.lang.String,java.lang.Object>