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, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected final org.apache.camel.CamelContext context
protected final int maxCacheSize
public AbstractDynamicRegistry(org.apache.camel.CamelContext context,
int maxCacheSize)
public void start()
start in interface org.apache.camel.Servicepublic 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 boolean isStatic(K key)
public boolean isDynamic(K key)
public void stop()
stop in interface org.apache.camel.Servicepublic String toString()
toString in class AbstractMap<K,V>Apache Camel