public class DefaultEndpointRegistry extends AbstractMap<EndpointKey,Endpoint> implements EndpointRegistry<EndpointKey>
EndpointRegistryAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
DefaultEndpointRegistry(CamelContext context) |
DefaultEndpointRegistry(CamelContext context,
Map<EndpointKey,Endpoint> endpoints) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Cleanup the cache (purging stale entries)
|
void |
clear() |
boolean |
containsKey(Object o) |
boolean |
containsValue(Object o) |
int |
dynamicSize()
Number of endpoints in the dynamic registry
|
Set<Map.Entry<EndpointKey,Endpoint>> |
entrySet() |
Endpoint |
get(Object o) |
int |
getMaximumCacheSize()
Maximum number of entries to store in the dynamic registry
|
boolean |
isDynamic(String key)
Whether the given endpoint is stored in the dynamic cache
|
boolean |
isEmpty() |
boolean |
isStatic(String key)
Whether the given endpoint is stored in the static cache
|
void |
purge()
Purges the cache
|
Endpoint |
put(EndpointKey key,
Endpoint endpoint) |
Endpoint |
remove(Object o) |
int |
size() |
void |
start()
Starts the service
|
int |
staticSize()
Number of endpoints in the static registry.
|
void |
stop()
Stops the service
|
String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, valuespublic DefaultEndpointRegistry(CamelContext context)
public DefaultEndpointRegistry(CamelContext context, Map<EndpointKey,Endpoint> endpoints)
public void start() throws Exception
Servicepublic Endpoint get(Object o)
get in interface Map<EndpointKey,Endpoint>get in class AbstractMap<EndpointKey,Endpoint>public Endpoint put(EndpointKey key, Endpoint endpoint)
put in interface Map<EndpointKey,Endpoint>put in class AbstractMap<EndpointKey,Endpoint>public boolean containsKey(Object o)
containsKey in interface Map<EndpointKey,Endpoint>containsKey in class AbstractMap<EndpointKey,Endpoint>public boolean containsValue(Object o)
containsValue in interface Map<EndpointKey,Endpoint>containsValue in class AbstractMap<EndpointKey,Endpoint>public int size()
size in interface Map<EndpointKey,Endpoint>size in class AbstractMap<EndpointKey,Endpoint>public int staticSize()
EndpointRegistrystaticSize in interface EndpointRegistry<EndpointKey>public int dynamicSize()
EndpointRegistrydynamicSize in interface EndpointRegistry<EndpointKey>public boolean isEmpty()
isEmpty in interface Map<EndpointKey,Endpoint>isEmpty in class AbstractMap<EndpointKey,Endpoint>public Endpoint remove(Object o)
remove in interface Map<EndpointKey,Endpoint>remove in class AbstractMap<EndpointKey,Endpoint>public void clear()
clear in interface Map<EndpointKey,Endpoint>clear in class AbstractMap<EndpointKey,Endpoint>public Set<Map.Entry<EndpointKey,Endpoint>> entrySet()
entrySet in interface Map<EndpointKey,Endpoint>entrySet in class AbstractMap<EndpointKey,Endpoint>public int getMaximumCacheSize()
EndpointRegistrygetMaximumCacheSize in interface EndpointRegistry<EndpointKey>public void purge()
purge in interface EndpointRegistry<EndpointKey>public void cleanUp()
EndpointRegistrycleanUp in interface EndpointRegistry<EndpointKey>public boolean isStatic(String key)
EndpointRegistryisStatic in interface EndpointRegistry<EndpointKey>key - the endpoint keypublic boolean isDynamic(String key)
EndpointRegistryisDynamic in interface EndpointRegistry<EndpointKey>key - the endpoint keypublic void stop() throws Exception
Servicepublic String toString()
toString in class AbstractMap<EndpointKey,Endpoint>Apache Camel