org.apache.camel.impl
Class EndpointRegistry

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<K,V>
              extended by org.apache.camel.util.LRUCache<K,V>
                  extended by org.apache.camel.util.LRUSoftCache<org.apache.camel.impl.EndpointKey,Endpoint>
                      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
EndpointRegistry(CamelContext context)
           
EndpointRegistry(CamelContext context, Map<org.apache.camel.impl.EndpointKey,Endpoint> endpoints)
           
 
Method Summary
 void purge()
          Purges the cache
 String toString()
           
 
Methods inherited from class org.apache.camel.util.LRUSoftCache
containsKey, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class org.apache.camel.util.LRUCache
getHits, getMaxCacheSize, getMisses, removeEldestEntry, resetStatistics, start, stop
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue
 
Methods inherited from class java.util.HashMap
clone
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

EndpointRegistry

public EndpointRegistry(CamelContext context)

EndpointRegistry

public EndpointRegistry(CamelContext context,
                        Map<org.apache.camel.impl.EndpointKey,Endpoint> endpoints)
Method Detail

purge

public void purge()
Purges the cache


toString

public String toString()
Overrides:
toString in class LRUSoftCache<org.apache.camel.impl.EndpointKey,Endpoint>


Apache CAMEL