public static class CacheTestUtils.ByteArrayCacheable extends java.lang.Object implements Cacheable
| Constructor and Description |
|---|
ByteArrayCacheable(byte[] buf) |
| 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.
|
long |
heapSize() |
void |
serialize(java.nio.ByteBuffer destination)
Serializes its data into destination.
|
public long heapSize()
public int getSerializedLength()
CacheablegetSerializedLength in interface Cacheablepublic void serialize(java.nio.ByteBuffer destination)
Cacheablepublic CacheableDeserializer<Cacheable> getDeserializer()
CacheablegetDeserializer in interface Cacheablepublic BlockType getBlockType()
getBlockType in interface Cacheable