@InterfaceAudience.Private public interface Cacheable extends HeapSize
Modifier and Type | Method and Description |
---|---|
BlockType |
getBlockType() |
CacheableDeserializer<Cacheable> |
getDeserializer()
Returns CacheableDeserializer instance which reconstructs original object from ByteBuffer.
|
int |
getSerializedLength()
Returns the length of the ByteBuffer required to serialized the object.
|
void |
serialize(ByteBuffer destination)
Serializes its data into destination.
|
int getSerializedLength()
void serialize(ByteBuffer destination)
destination
- Where to serialize toCacheableDeserializer<Cacheable> getDeserializer()
BlockType getBlockType()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.