All Known Implementing Classes:
DmlEventSerdesProvider, ExtendedStringBeginEventSerdesProvider, ExtendedStringWriteEventSerdesProvider, LobEraseEventSerdesProvider, LobWriteEventSerdesProvider, LogMinerEventSerdesProvider, RedoSqlDmlEventSerdesProvider, SelectLobLocatorSerdesProvider, TruncateEventSerdesProvider, XmlBeginEventSerdesProvider, XmlEndEventSerdesProvider, XmlWriteEventSerdesProvider

public interface SerdesProvider<T>
Defines the contract for supplying a Serdes (Serializer/Deserializer tuple) for the Ehcache transaction event cache that stores different types of events.
Author:
Chris Cranford
  • Method Details

    • getJavaType

      Class<?> getJavaType()
      Get the java type for the serialization/deserialization provider.
      Returns:
      the java class type
    • serialize

      void serialize(T object, SerializerOutputStream stream) throws IOException
      Serializes the object into the output stream.
      Parameters:
      object - the object to be serialized, should not be null
      stream - the output stream, should not be null
      Throws:
      IOException - thrown if there is a problem serializing the data to the output stream
    • deserialize

      void deserialize(DeserializationContext context, SerializerInputStream stream) throws IOException
      Deserializes the input stream.
      Parameters:
      context - the deserialization context, should not be null
      stream - the input stream to be read, should not be null
      Throws:
      IOException - thrown if there is a problem deserializing the data from the input stream