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:
  • 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,org.apache.geode.pdx.PdxWriter> getSessionSerializer()
    • serialize

      public void serialize(T session, org.apache.geode.pdx.PdxWriter writer)
      Description copied from interface: SessionSerializer
      Serializes the given Object to the provided out stream.
      Parameters:
      session - Object to serialize.
      writer - stream in which to write the bytes of the Object.
    • deserialize

      public T deserialize(org.apache.geode.pdx.PdxReader reader)
      Description copied from interface: SessionSerializer
      Deserializes an Object from bytes contained in the provided in stream.
      Parameters:
      reader - stream from which to read the bytes of the Object.
      Returns:
      the deserialized Object.