@InterfaceAudience.Private public interface Cacheable extends HeapSize, HBaseReferenceCounted
| 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. | 
| default int | refCnt()Reference count of this Cacheable. | 
| default boolean | release()Decrease its reference count, and if no reference then free the memory of this object, its
 backend is usually a  ByteBuff, and we will put its NIO
 ByteBuffers back toByteBuffAllocator | 
| default Cacheable | retain()Increase its reference count, and only when no reference we can free the object's memory. | 
| void | serialize(ByteBuffer destination,
         boolean includeNextBlockMetadata)Serializes its data into destination. | 
release, retain, touch, touchint getSerializedLength()
void serialize(ByteBuffer destination, boolean includeNextBlockMetadata)
destination - Where to serialize toincludeNextBlockMetadata - Whether to include nextBlockMetadata in the Cache block.CacheableDeserializer<Cacheable> getDeserializer()
BlockType getBlockType()
default Cacheable retain()
retain in interface org.apache.hbase.thirdparty.io.netty.util.ReferenceCounteddefault int refCnt()
refCnt in interface org.apache.hbase.thirdparty.io.netty.util.ReferenceCounteddefault boolean release()
ByteBuff, and we will put its NIO
 ByteBuffers back to ByteBuffAllocatorrelease in interface org.apache.hbase.thirdparty.io.netty.util.ReferenceCountedCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.