org.apache.camel.impl
Class EndpointRegistry

java.lang.Object
  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:
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:

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<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, put, putAll, remove, size, values
 
Methods inherited from class org.apache.camel.util.LRUCache
clear, containsValue, getHits, getMaxCacheSize, getMisses, keySet, removeEldestEntry, resetStatistics, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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