@InterfaceAudience.Private public interface CacheableDeserializer<T extends Cacheable>
Modifier and Type | Method and Description |
---|---|
T |
deserialize(ByteBuffer b)
Returns the deserialized object.
|
T |
deserialize(ByteBuffer b,
boolean reuse) |
int |
getDeserialiserIdentifier()
Get the identifier of this deserialiser.
|
T deserialize(ByteBuffer b) throws IOException
IOException
T deserialize(ByteBuffer b, boolean reuse) throws IOException
b
- reuse
- true if Cacheable object can use the given buffer as its
contentIOException
int getDeserialiserIdentifier()
CacheableDeserializerIdManager
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.