Class AbstractPdxSerializableSessionSerializer<T extends org.springframework.session.Session>
java.lang.Object
org.springframework.session.data.gemfire.serialization.pdx.AbstractPdxSerializableSessionSerializer<T>
- All Implemented Interfaces:
org.apache.geode.pdx.PdxSerializer
,SessionSerializer<T,
org.apache.geode.pdx.PdxReader, org.apache.geode.pdx.PdxWriter>
- Direct Known Subclasses:
PdxSerializableSessionSerializer
,PdxSerializerSessionSerializerAdapter
public abstract class AbstractPdxSerializableSessionSerializer<T extends org.springframework.session.Session>
extends Object
implements org.apache.geode.pdx.PdxSerializer, SessionSerializer<T,org.apache.geode.pdx.PdxReader,org.apache.geode.pdx.PdxWriter>
The
AbstractPdxSerializableSessionSerializer
class is an abstract base class containing functionality common
to all GemFire/Geode PDX-based SessionSerializer
implementations.
This class also implements GemFire/Geode's PdxSerializer
interface, adapting it to the Spring Session,
Data Pivotal GemFire SessionSerializer
interface.- Since:
- 2.0.0
- See Also:
-
PdxReader
PdxWriter
PdxSerializer
Session
SessionSerializer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSerialize
(Class<?> type) Determines whether the giventype
can be de/serialized by thisSessionSerializer
.boolean
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, deserialize, serialize
-
Constructor Details
-
AbstractPdxSerializableSessionSerializer
public AbstractPdxSerializableSessionSerializer()
-
-
Method Details
-
toData
- Specified by:
toData
in interfaceorg.apache.geode.pdx.PdxSerializer
-
fromData
- Specified by:
fromData
in interfaceorg.apache.geode.pdx.PdxSerializer
-
canSerialize
Description copied from interface:SessionSerializer
Determines whether the giventype
can be de/serialized by thisSessionSerializer
.- Specified by:
canSerialize
in interfaceSessionSerializer<T extends org.springframework.session.Session,
org.apache.geode.pdx.PdxReader, org.apache.geode.pdx.PdxWriter> - 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:
-