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, resetStatistics
public DefaultEndpointRegistry(CamelContext context)
public DefaultEndpointRegistry(CamelContext context, Map<org.apache.camel.impl.EndpointKey,Endpoint> endpoints)
public void start() throws Exception
Service
public 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()
EndpointRegistry
staticSize
in interface EndpointRegistry<org.apache.camel.impl.EndpointKey>
public int dynamicSize()
EndpointRegistry
dynamicSize
in interface EndpointRegistry<org.apache.camel.impl.EndpointKey>
public boolean isEmpty()
public void clear()
public Collection<Endpoint> values()
public int getMaximumCacheSize()
EndpointRegistry
getMaximumCacheSize
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)
EndpointRegistry
isStatic
in interface EndpointRegistry<org.apache.camel.impl.EndpointKey>
key
- the endpoint keypublic boolean isDynamic(String key)
EndpointRegistry
isDynamic
in interface EndpointRegistry<org.apache.camel.impl.EndpointKey>
key
- the endpoint keypublic void stop() throws Exception
Service
Apache Camel