public class DefaultEndpointRegistry extends LRUCache<org.apache.camel.impl.EndpointKey,Endpoint> implements EndpointRegistry<org.apache.camel.impl.EndpointKey>
EndpointRegistry| Constructor and Description |
|---|
DefaultEndpointRegistry(CamelContext context) |
DefaultEndpointRegistry(CamelContext context,
Map<org.apache.camel.impl.EndpointKey,Endpoint> endpoints) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object o) |
boolean |
containsValue(Object o) |
int |
dynamicSize()
Number of endpoints in the dynamic registry
|
Set<Map.Entry<org.apache.camel.impl.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
|
Set<org.apache.camel.impl.EndpointKey> |
keySet() |
void |
purge()
Purges the cache
|
Endpoint |
put(org.apache.camel.impl.EndpointKey key,
Endpoint endpoint) |
void |
putAll(Map<? extends org.apache.camel.impl.EndpointKey,? extends Endpoint> map) |
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() |
Collection<Endpoint> |
values() |
getEvicted, getHits, getMaxCacheSize, getMisses, onEviction, resetStatisticspublic DefaultEndpointRegistry(CamelContext context)
public DefaultEndpointRegistry(CamelContext context, Map<org.apache.camel.impl.EndpointKey,Endpoint> endpoints)
public void start()
throws Exception
Servicepublic boolean containsKey(Object o)
containsKey in interface Map<org.apache.camel.impl.EndpointKey,Endpoint>containsKey in class LRUCache<org.apache.camel.impl.EndpointKey,Endpoint>public boolean containsValue(Object o)
containsValue in interface Map<org.apache.camel.impl.EndpointKey,Endpoint>containsValue in class LRUCache<org.apache.camel.impl.EndpointKey,Endpoint>public int size()
public int staticSize()
EndpointRegistrystaticSize in interface EndpointRegistry<org.apache.camel.impl.EndpointKey>public int dynamicSize()
EndpointRegistrydynamicSize in interface EndpointRegistry<org.apache.camel.impl.EndpointKey>public boolean isEmpty()
public void clear()
public Set<org.apache.camel.impl.EndpointKey> keySet()
public Collection<Endpoint> values()
public int getMaximumCacheSize()
EndpointRegistrygetMaximumCacheSize in interface EndpointRegistry<org.apache.camel.impl.EndpointKey>public void purge()
purge in interface EndpointRegistry<org.apache.camel.impl.EndpointKey>public boolean isStatic(String key)
EndpointRegistryisStatic in interface EndpointRegistry<org.apache.camel.impl.EndpointKey>key - the endpoint keypublic boolean isDynamic(String key)
EndpointRegistryisDynamic in interface EndpointRegistry<org.apache.camel.impl.EndpointKey>key - the endpoint keypublic void stop()
throws Exception
ServiceApache Camel