Interface SerdesProvider<T>
- 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 Summary
Modifier and TypeMethodDescriptionvoiddeserialize(DeserializationContext context, SerializerInputStream stream) Deserializes the input stream.Class<?> Get the java type for the serialization/deserialization provider.voidserialize(T object, SerializerOutputStream stream) Serializes the object into the output stream.
-
Method Details
-
getJavaType
Class<?> getJavaType()Get the java type for the serialization/deserialization provider.- Returns:
- the java class type
-
serialize
Serializes the object into the output stream.- Parameters:
object- the object to be serialized, should not benullstream- the output stream, should not benull- Throws:
IOException- thrown if there is a problem serializing the data to the output stream
-
deserialize
Deserializes the input stream.- Parameters:
context- the deserialization context, should not benullstream- the input stream to be read, should not benull- Throws:
IOException- thrown if there is a problem deserializing the data from the input stream
-