@InterfaceAudience.Private public class CacheableDeserializerIdManager extends Object
CacheableDeserializer
Modifier and Type | Field and Description |
---|---|
private static AtomicInteger |
identifier |
private static Map<Integer,CacheableDeserializer<Cacheable>> |
registeredDeserializers |
Constructor and Description |
---|
CacheableDeserializerIdManager() |
Modifier and Type | Method and Description |
---|---|
static CacheableDeserializer<Cacheable> |
getDeserializer(int id)
Get the cacheable deserializer as the given identifier Id
|
static int |
registerDeserializer(CacheableDeserializer<Cacheable> cd)
Register the given cacheable deserializer and generate an unique identifier
id for it
|
private static final Map<Integer,CacheableDeserializer<Cacheable>> registeredDeserializers
private static final AtomicInteger identifier
public static int registerDeserializer(CacheableDeserializer<Cacheable> cd)
cd
- public static CacheableDeserializer<Cacheable> getDeserializer(int id)
id
- Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.