Spring Session for VMware GemFire
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:
-
PdxSerializerSessionSessionSerializerAbstractPdxSerializableSessionSerializer
-
Constructor Summary
ConstructorsConstructorDescriptionPdxSerializerSessionSerializerAdapter(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 anObjectfrom bytes contained in the providedinstream.SessionSerializer<T,org.apache.geode.pdx.PdxReader, org.apache.geode.pdx.PdxWriter> voidSerializes the givenObjectto the providedoutstream.Methods inherited from class org.springframework.session.data.gemfire.serialization.pdx.AbstractPdxSerializableSessionSerializer
canSerialize, 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
-
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:SessionSerializerSerializes the givenObjectto the providedoutstream. -
deserialize
Description copied from interface:SessionSerializerDeserializes anObjectfrom bytes contained in the providedinstream.
-