Spring Session for VMware GemFire
Interface SessionSerializer<T,IN,OUT>
- All Known Implementing Classes:
AbstractDataSerializableSessionSerializer,AbstractPdxSerializableSessionSerializer,DataSerializableSessionAttributesSerializer,DataSerializableSessionSerializer,DataSerializerSessionSerializerAdapter,PdxSerializableSessionSerializer,PdxSerializerSessionSerializerAdapter
public interface SessionSerializer<T,IN,OUT>
The
SessionSerializer interface is a Service Provider Interface (SPI) for providers
needing to provide a custom implementation of their serialization strategy.- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanSerialize(Class<?> type) Determines whether the giventypecan be de/serialized by thisSessionSerializer.default booleancanSerialize(Object obj) Determines whether the givenObjectcan be de/serialized by thisSessionSerializer.deserialize(IN in) Deserializes anObjectfrom bytes contained in the providedinstream.voidSerializes the givenObjectto the providedoutstream.
-
Method Details
-
serialize
Serializes the givenObjectto the providedoutstream. -
deserialize
Deserializes anObjectfrom bytes contained in the providedinstream. -
canSerialize
Determines whether the giventypecan be de/serialized by thisSessionSerializer.- Parameters:
type-Classto evaluate for whether de/serialization is supported.- Returns:
- a boolean value indicating whether the specified
typecan be de/serialized by thisSessionSerializer. - See Also:
-
canSerialize
Determines whether the givenObjectcan be de/serialized by thisSessionSerializer.- Parameters:
obj-Objectto evaluate for whether de/serialization is supported.- Returns:
- a boolean value indicating whether the specified
Objectcan be de/serialized by thisSessionSerializer. - See Also:
-