@InterfaceAudience.Private public interface CacheableDeserializer<T extends Cacheable>
Modifier and Type | Method and Description |
---|---|
T |
deserialize(ByteBuff b,
ByteBuffAllocator allocator) |
int |
getDeserializerIdentifier()
Get the identifier of this deserializer.
|
T deserialize(ByteBuff b, ByteBuffAllocator allocator) throws IOException
b
- ByteBuff to deserialize the Cacheable.allocator
- to manage NIO ByteBuffers for future allocation or de-allocation.IOException
int getDeserializerIdentifier()
CacheableDeserializerIdManager
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.