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:
-
Duration
Instant
PdxReader
PdxWriter
Session
SessionSerializer
AbstractPdxSerializableSessionSerializer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSerialize
(Class<?> type) Determines whether the giventype
can be de/serialized by thisSessionSerializer
.deserialize
(org.apache.geode.pdx.PdxReader reader) Deserializes anObject
from bytes contained in the providedin
stream.protected <K,
V> Map<K, V> void
serialize
(AbstractGemFireOperationsSessionRepository.GemFireSession session, org.apache.geode.pdx.PdxWriter writer) Serializes the givenObject
to the providedout
stream.Methods inherited from class org.springframework.session.data.gemfire.serialization.pdx.AbstractPdxSerializableSessionSerializer
fromData, toData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:SessionSerializer
Serializes the givenObject
to the providedout
stream. -
newMap
-
deserialize
public AbstractGemFireOperationsSessionRepository.GemFireSession deserialize(org.apache.geode.pdx.PdxReader reader) Description copied from interface:SessionSerializer
Deserializes anObject
from bytes contained in the providedin
stream. -
canSerialize
Description copied from interface:SessionSerializer
Determines whether the giventype
can be de/serialized by thisSessionSerializer
.- Specified by:
canSerialize
in interfaceSessionSerializer<AbstractGemFireOperationsSessionRepository.GemFireSession,
org.apache.geode.pdx.PdxReader, org.apache.geode.pdx.PdxWriter> - Overrides:
canSerialize
in classAbstractPdxSerializableSessionSerializer<AbstractGemFireOperationsSessionRepository.GemFireSession>
- Parameters:
type
-Class
to evaluate for whether de/serialization is supported.- Returns:
- a boolean value indicating whether the specified
type
can be de/serialized by thisSessionSerializer
. - See Also:
-