Package org.apache.camel.impl.engine
Class AbstractDynamicRegistry<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.apache.camel.impl.engine.AbstractDynamicRegistry<K,V>
- All Implemented Interfaces:
AutoCloseable
,Map<K,
,V> org.apache.camel.Service
,org.apache.camel.StaticService
- Direct Known Subclasses:
DefaultEndpointRegistry
,DefaultTransformerRegistry
,DefaultValidatorRegistry
public class AbstractDynamicRegistry<K,V>
extends AbstractMap<K,V>
implements org.apache.camel.StaticService
Base implementation for
EndpointRegistry
,
TransformerRegistry
, and ValidatorRegistry
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Modifier and TypeFieldDescriptionprotected final org.apache.camel.CamelContext
protected final int
protected final org.apache.camel.spi.RouteController
-
Constructor Summary
ConstructorDescriptionAbstractDynamicRegistry
(org.apache.camel.CamelContext context, int maxCacheSize) -
Method Summary
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
Methods inherited from interface org.apache.camel.Service
build, close, init
-
Field Details
-
context
protected final org.apache.camel.CamelContext context -
routeController
protected final org.apache.camel.spi.RouteController routeController -
maxCacheSize
protected final int maxCacheSize -
dynamicMap
-
staticMap
-
-
Constructor Details
-
AbstractDynamicRegistry
public AbstractDynamicRegistry(org.apache.camel.CamelContext context, int maxCacheSize)
-
-
Method Details
-
start
public void start()- Specified by:
start
in interfaceorg.apache.camel.Service
-
get
-
put
-
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V> - Overrides:
containsKey
in classAbstractMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V> - Overrides:
containsValue
in classAbstractMap<K,
V>
-
size
public int size() -
staticSize
public int staticSize() -
dynamicSize
public int dynamicSize() -
isEmpty
public boolean isEmpty() -
remove
-
clear
public void clear() -
entrySet
-
getMaximumCacheSize
public int getMaximumCacheSize() -
purge
public void purge() -
cleanUp
public void cleanUp() -
isStatic
-
isDynamic
-
getReadOnlyValues
-
getReadOnlyMap
-
stop
public void stop()- Specified by:
stop
in interfaceorg.apache.camel.Service
-
toString
- Overrides:
toString
in classAbstractMap<K,
V>
-