org.apache.camel.impl
Class EndpointRegistry
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
org.apache.camel.util.LRUCache<K,V>
org.apache.camel.util.LRUSoftCache<org.apache.camel.impl.EndpointKey,Endpoint>
org.apache.camel.impl.EndpointRegistry
- All Implemented Interfaces:
- Serializable, Cloneable, Map<org.apache.camel.impl.EndpointKey,Endpoint>, Service
public class EndpointRegistry
- extends LRUSoftCache<org.apache.camel.impl.EndpointKey,Endpoint>
Endpoint registry which is a based on a LRUSoftCache
.
We use a soft reference cache to allow the JVM to re-claim memory if it runs low on memory.
- Version:
- See Also:
- Serialized Form
EndpointRegistry
public EndpointRegistry(CamelContext context)
EndpointRegistry
public EndpointRegistry(CamelContext context,
Map<org.apache.camel.impl.EndpointKey,Endpoint> endpoints)
purge
public void purge()
- Purges the cache
toString
public String toString()
- Overrides:
toString
in class LRUSoftCache<org.apache.camel.impl.EndpointKey,Endpoint>
Apache CAMEL