Class AbstractEhcacheSerializer<T>
java.lang.Object
io.debezium.connector.oracle.logminer.processor.ehcache.serialization.AbstractEhcacheSerializer<T>
- All Implemented Interfaces:
org.ehcache.spi.serialization.Serializer<T>
- Direct Known Subclasses:
EhcacheTransactionSerializer,LogMinerEventSerializer
public abstract class AbstractEhcacheSerializer<T>
extends Object
implements org.ehcache.spi.serialization.Serializer<T>
An abstract implementation of the Ehcache
Serializer interface.- Author:
- Chris Cranford
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Tdeserialize(SerializerInputStream stream) Deserializes the data within the input stream.booleanequals(T object, ByteBuffer buffer) read(ByteBuffer buffer) protected abstract voidserialize(T object, SerializerOutputStream stream) Serialize the specified object to the output stream.
-
Constructor Details
-
AbstractEhcacheSerializer
public AbstractEhcacheSerializer()
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceorg.ehcache.spi.serialization.Serializer<T>- Throws:
org.ehcache.spi.serialization.SerializerException
-
read
public T read(ByteBuffer buffer) throws ClassNotFoundException, org.ehcache.spi.serialization.SerializerException - Specified by:
readin interfaceorg.ehcache.spi.serialization.Serializer<T>- Throws:
ClassNotFoundExceptionorg.ehcache.spi.serialization.SerializerException
-
equals
public boolean equals(T object, ByteBuffer buffer) throws ClassNotFoundException, org.ehcache.spi.serialization.SerializerException - Specified by:
equalsin interfaceorg.ehcache.spi.serialization.Serializer<T>- Throws:
ClassNotFoundExceptionorg.ehcache.spi.serialization.SerializerException
-
serialize
Serialize the specified object to the output stream.- Parameters:
object- the object to be serialized, should not benullstream- the output stream to write to, should not benull- Throws:
IOException- when a write operation fails on the output stream
-
deserialize
Deserializes the data within the input stream.- Parameters:
stream- the input stream to read, should not benull- Returns:
- the object deserialized from the input stream, should not be
null - Throws:
IOException- when a read operation fails on the input stream
-