public class AbstractDynamicRegistry<K,V> extends AbstractMap<K,V> implements org.apache.camel.StaticService
TransformerRegistry
, ValidatorRegistry
and EndpointRegistry
.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected org.apache.camel.CamelContext |
context |
protected Map<K,V> |
dynamicMap |
protected int |
maxCacheSize |
protected Map<K,V> |
staticMap |
Constructor and Description |
---|
AbstractDynamicRegistry(org.apache.camel.CamelContext context,
int maxCacheSize) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
void |
clear() |
boolean |
containsKey(Object o) |
boolean |
containsValue(Object o) |
int |
dynamicSize() |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object o) |
int |
getMaximumCacheSize() |
boolean |
isDynamic(K key) |
boolean |
isEmpty() |
boolean |
isStatic(K key) |
void |
purge()
Purges the cache
|
V |
put(K key,
V transformer) |
V |
remove(Object o) |
int |
size() |
void |
start() |
int |
staticSize() |
void |
stop() |
String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected final org.apache.camel.CamelContext context
protected final int maxCacheSize
protected final Map<K,V> dynamicMap
public AbstractDynamicRegistry(org.apache.camel.CamelContext context, int maxCacheSize)
public void start() throws Exception
start
in interface org.apache.camel.Service
Exception
public boolean containsKey(Object o)
containsKey
in interface Map<K,V>
containsKey
in class AbstractMap<K,V>
public boolean containsValue(Object o)
containsValue
in interface Map<K,V>
containsValue
in class AbstractMap<K,V>
public int size()
public int staticSize()
public int dynamicSize()
public boolean isEmpty()
public void clear()
public int getMaximumCacheSize()
public void purge()
public void cleanUp()
public void stop() throws Exception
stop
in interface org.apache.camel.Service
Exception
Apache Camel