Package org.teiid.common.buffer
Interface Serializer<T>
-
- Type Parameters:
T
-
public interface Serializer<T>
Responsible for serializingCacheEntry
s
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
describe(T obj)
T
deserialize(ObjectInput ois)
Long
getId()
void
serialize(T obj, ObjectOutput oos)
boolean
useSoftCache()
-
-
-
Method Detail
-
serialize
void serialize(T obj, ObjectOutput oos) throws IOException
- Throws:
IOException
-
deserialize
T deserialize(ObjectInput ois) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
useSoftCache
boolean useSoftCache()
-
getId
Long getId()
-
-