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
FieldsModifier and TypeFieldDescriptionprotected final org.apache.camel.CamelContextprotected final intprotected final org.apache.camel.spi.RouteController -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDynamicRegistry(org.apache.camel.CamelContext context, int maxCacheSize) -
Method Summary
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllMethods 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:
startin interfaceorg.apache.camel.Service
-
get
-
put
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V> - Overrides:
containsKeyin classAbstractMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V> - Overrides:
containsValuein 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:
stopin interfaceorg.apache.camel.Service
-
toString
- Overrides:
toStringin classAbstractMap<K,V>
-