Class PdxSerializerSessionSerializerAdapter<T extends org.springframework.session.Session>
java.lang.Object
org.springframework.session.data.gemfire.serialization.pdx.AbstractPdxSerializableSessionSerializer<T>
org.springframework.session.data.gemfire.serialization.pdx.support.PdxSerializerSessionSerializerAdapter<T>
- All Implemented Interfaces:
org.apache.geode.pdx.PdxSerializer
,SessionSerializer<T,
org.apache.geode.pdx.PdxReader, org.apache.geode.pdx.PdxWriter>
public class PdxSerializerSessionSerializerAdapter<T extends org.springframework.session.Session>
extends AbstractPdxSerializableSessionSerializer<T>
The
PdxSerializerSessionSerializerAdapter
class is a two-way Adapter adapting a SessionSerializer
instance as an instance of PdxSerializer
in a GemFire/Geode context, or adapting a PdxSerializer
as a SessionSerializer
in a Spring Session context.- Since:
- 2.0.0
- See Also:
-
PdxSerializer
Session
SessionSerializer
AbstractPdxSerializableSessionSerializer
-
Constructor Summary
ConstructorDescriptionPdxSerializerSessionSerializerAdapter
(SessionSerializer<T, org.apache.geode.pdx.PdxReader, org.apache.geode.pdx.PdxWriter> sessionSerializer) -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(org.apache.geode.pdx.PdxReader reader) Deserializes anObject
from bytes contained in the providedin
stream.SessionSerializer<T,
org.apache.geode.pdx.PdxReader, org.apache.geode.pdx.PdxWriter> void
Serializes the givenObject
to the providedout
stream.Methods inherited from class org.springframework.session.data.gemfire.serialization.pdx.AbstractPdxSerializableSessionSerializer
canSerialize, 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
-
PdxSerializerSessionSerializerAdapter
public PdxSerializerSessionSerializerAdapter(SessionSerializer<T, org.apache.geode.pdx.PdxReader, org.apache.geode.pdx.PdxWriter> sessionSerializer)
-
-
Method Details
-
getSessionSerializer
public SessionSerializer<T,org.apache.geode.pdx.PdxReader, getSessionSerializer()org.apache.geode.pdx.PdxWriter> -
serialize
Description copied from interface:SessionSerializer
Serializes the givenObject
to the providedout
stream. -
deserialize
Description copied from interface:SessionSerializer
Deserializes anObject
from bytes contained in the providedin
stream.
-