public interface CacheSerializer<T>
ByteBuffer| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(ByteBuffer buf)
Deserialize from the specified
DataInput instance. |
void |
serialize(T t,
ByteBuffer buf)
Serialize the specified type into the specified
ByteBuffer instance. |
int |
serializedSize(T t)
Calculate the number of bytes that will be produced by
serialize(Object, java.nio.ByteBuffer)
for given object t. |
void serialize(T t, ByteBuffer buf)
ByteBuffer instance.t - type that needs to be serializedbuf - ByteBuffer into which serialization needs to happen.T deserialize(ByteBuffer buf)
DataInput instance.buf - ByteBuffer from which deserialization needs to happen.int serializedSize(T t)
serialize(Object, java.nio.ByteBuffer)
for given object t.t - object to calculate serialized size fort© 2014 Robert Stupp, Koeln, Germany, robert-stupp.de - licensed under Apache License, Version 2 - Homepage