public class PdxSerializableSessionSerializer extends AbstractPdxSerializableSessionSerializer<AbstractGemFireOperationsSessionRepository.GemFireSession>
PdxSerializableSessionSerializer class is an implementation of the SessionSerializer interface
used to serialize a Spring Session using the GemFire/Geode's PDX Serialization framework.PdxReader,
PdxWriter,
Session,
SessionSerializer,
AbstractPdxSerializableSessionSerializer| Constructor and Description |
|---|
PdxSerializableSessionSerializer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSerialize(java.lang.Class<?> type)
Determines whether the given
type can be de/serialized by this SessionSerializer. |
AbstractGemFireOperationsSessionRepository.GemFireSession |
deserialize(org.apache.geode.pdx.PdxReader reader)
Deserializes an
Object from bytes contained in the provided in stream. |
protected <K,V> java.util.Map<K,V> |
newMap(java.util.Map<K,V> map) |
void |
serialize(AbstractGemFireOperationsSessionRepository.GemFireSession session,
org.apache.geode.pdx.PdxWriter writer)
Serializes the given
Object to the provided out stream. |
fromData, toDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanSerializepublic void serialize(AbstractGemFireOperationsSessionRepository.GemFireSession session, org.apache.geode.pdx.PdxWriter writer)
SessionSerializerObject to the provided out stream.session - Object to serialize.writer - stream in which to write the bytes of the Object.protected <K,V> java.util.Map<K,V> newMap(java.util.Map<K,V> map)
public AbstractGemFireOperationsSessionRepository.GemFireSession deserialize(org.apache.geode.pdx.PdxReader reader)
SessionSerializerObject from bytes contained in the provided in stream.reader - stream from which to read the bytes of the Object.Object.public boolean canSerialize(java.lang.Class<?> type)
SessionSerializertype can be de/serialized by this SessionSerializer.canSerialize in interface SessionSerializer<AbstractGemFireOperationsSessionRepository.GemFireSession,org.apache.geode.pdx.PdxReader,org.apache.geode.pdx.PdxWriter>canSerialize in class AbstractPdxSerializableSessionSerializer<AbstractGemFireOperationsSessionRepository.GemFireSession>type - Class to evaluate for whether de/serialization is supported.type can be de/serialized
by this SessionSerializer.SessionSerializer.canSerialize(Object)