Class AbstractDataSerializableSessionSerializer<T>

java.lang.Object
org.apache.geode.DataSerializer
org.springframework.session.data.gemfire.serialization.data.AbstractDataSerializableSessionSerializer<T>
All Implemented Interfaces:
SessionSerializer<T,DataInput,DataOutput>
Direct Known Subclasses:
DataSerializableSessionAttributesSerializer, DataSerializableSessionSerializer, DataSerializerSessionSerializerAdapter

public abstract class AbstractDataSerializableSessionSerializer<T> extends org.apache.geode.DataSerializer implements SessionSerializer<T,DataInput,DataOutput>
The AbstractDataSerializableSessionSerializer class is an abstract base class encapsulating and implementing operations common to all Apache Geode/Pivotal GemFire DataSerializer and Spring Session SessionSerializer implementations. This class is also an implementation of the Template Software Design Pattern, providing a default implementations of the DataSerializer.toData(Object, DataOutput) and DataSerializer.fromData(DataInput) methods.
Since:
2.0.0
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static interface 
     
    protected static interface 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final boolean
     

    Fields inherited from class org.apache.geode.DataSerializer

    DISALLOW_JAVA_SERIALIZATION, DOUBLE, INT, LONG, PRESENT, TRACE_SERIALIZABLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    Determines whether Java Serialization is allowed during de/serialization when using this DataSerializer.
    boolean
    Determines whether the given type can be de/serialized by this SessionSerializer.
    <T> T
     
     
    int
    Returns the identifier for this DataSerializer.
    Class<?>[]
    Returns the types supported and handled by this DataSerializer during de/serialization.
    protected <T> T
     
    protected void
     
    void
     
    void
    serializeObject(Object obj, DataOutput out, boolean allowJavaSerialization)
     
    boolean
    toData(Object session, DataOutput out)
     

    Methods inherited from class org.apache.geode.DataSerializer

    equals, getContext, getEventId, hashCode, readArrayList, readArrayOfByteArrays, readBoolean, readBooleanArray, readByte, readByteArray, readCharacter, readCharArray, readClass, readConcurrentHashMap, readDate, readDouble, readDoubleArray, readEnum, readFile, readFloat, readFloatArray, readHashMap, readHashSet, readHashtable, readIdentityHashMap, readInetAddress, readIntArray, readInteger, readLinkedHashMap, readLinkedHashSet, readLinkedList, readLong, readLongArray, readNonPrimitiveClassName, readObject, readObjectArray, readOptional, readOptionalDouble, readOptionalInt, readOptionalLong, readOptionalPrimitive, readPrimitiveBoolean, readPrimitiveByte, readPrimitiveChar, readPrimitiveDouble, readPrimitiveFloat, readPrimitiveInt, readPrimitiveLong, readPrimitiveShort, readProperties, readRegion, readShort, readShortArray, readStack, readString, readStringArray, readTreeMap, readTreeSet, readUnsignedByte, readUnsignedShort, readVector, register, setContext, setEventId, writeArrayList, writeArrayOfByteArrays, writeBoolean, writeBooleanArray, writeByte, writeByteArray, writeByteArray, writeCharacter, writeCharArray, writeClass, writeConcurrentHashMap, writeDate, writeDouble, writeDoubleArray, writeEnum, writeFile, writeFloat, writeFloatArray, writeHashMap, writeHashSet, writeHashtable, writeIdentityHashMap, writeInetAddress, writeIntArray, writeInteger, writeLinkedHashMap, writeLinkedHashSet, writeLinkedList, writeLong, writeLongArray, writeNonPrimitiveClassName, writeObject, writeObject, writeObjectArray, writeObjectAsByteArray, writeOptional, writeOptionalDouble, writeOptionalInt, writeOptionalLong, writePrimitiveBoolean, writePrimitiveByte, writePrimitiveChar, writePrimitiveDouble, writePrimitiveFloat, writePrimitiveInt, writePrimitiveLong, writePrimitiveShort, writeProperties, writeRegion, writeShort, writeShortArray, writeStack, writeString, writeStringArray, writeTreeMap, writeTreeSet, writeUnsignedByte, writeUnsignedShort, writeVector

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.session.data.gemfire.serialization.SessionSerializer

    canSerialize, deserialize, serialize