Spring Session for VMware GemFire
Class PdxSerializableSessionSerializer
java.lang.Object
org.springframework.session.data.gemfire.serialization.pdx.AbstractPdxSerializableSessionSerializer<AbstractGemFireOperationsSessionRepository.GemFireSession>
org.springframework.session.data.gemfire.serialization.pdx.provider.PdxSerializableSessionSerializer
- All Implemented Interfaces:
org.apache.geode.pdx.PdxSerializer,SessionSerializer<AbstractGemFireOperationsSessionRepository.GemFireSession,org.apache.geode.pdx.PdxReader, org.apache.geode.pdx.PdxWriter>
public class PdxSerializableSessionSerializer
extends AbstractPdxSerializableSessionSerializer<AbstractGemFireOperationsSessionRepository.GemFireSession>
The
PdxSerializableSessionSerializer class is an implementation of the SessionSerializer interface
used to serialize a Spring Session using the GemFire/Geode's PDX Serialization framework.- Since:
- 2.0.0
- See Also:
-
DurationInstantPdxReaderPdxWriterSessionSessionSerializerAbstractPdxSerializableSessionSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSerialize(Class<?> type) Determines whether the giventypecan be de/serialized by thisSessionSerializer.deserialize(org.apache.geode.pdx.PdxReader reader) Deserializes anObjectfrom bytes contained in the providedinstream.protected <K,V> Map<K, V> voidserialize(AbstractGemFireOperationsSessionRepository.GemFireSession session, org.apache.geode.pdx.PdxWriter writer) Serializes the givenObjectto the providedoutstream.Methods inherited from class org.springframework.session.data.gemfire.serialization.pdx.AbstractPdxSerializableSessionSerializer
fromData, toDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.session.data.gemfire.serialization.SessionSerializer
canSerialize
-
Constructor Details
-
PdxSerializableSessionSerializer
public PdxSerializableSessionSerializer()
-
-
Method Details
-
serialize
public void serialize(AbstractGemFireOperationsSessionRepository.GemFireSession session, org.apache.geode.pdx.PdxWriter writer) Description copied from interface:SessionSerializerSerializes the givenObjectto the providedoutstream. -
newMap
-
deserialize
public AbstractGemFireOperationsSessionRepository.GemFireSession deserialize(org.apache.geode.pdx.PdxReader reader) Description copied from interface:SessionSerializerDeserializes anObjectfrom bytes contained in the providedinstream. -
canSerialize
Description copied from interface:SessionSerializerDetermines whether the giventypecan be de/serialized by thisSessionSerializer.- Specified by:
canSerializein interfaceSessionSerializer<AbstractGemFireOperationsSessionRepository.GemFireSession,org.apache.geode.pdx.PdxReader, org.apache.geode.pdx.PdxWriter> - Overrides:
canSerializein classAbstractPdxSerializableSessionSerializer<AbstractGemFireOperationsSessionRepository.GemFireSession>- Parameters:
type-Classto evaluate for whether de/serialization is supported.- Returns:
- a boolean value indicating whether the specified
typecan be de/serialized by thisSessionSerializer. - See Also:
-