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:
com.googlecode.concurrentlinkedhashmap.EvictionListener<org.apache.camel.impl.EndpointKey,Endpoint>, Serializable, Map<org.apache.camel.impl.EndpointKey,Endpoint>, Service

public class EndpointRegistry
extends LRUSoftCache<org.apache.camel.impl.EndpointKey,Endpoint>
implements Service

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.

See Also:
Serialized Form

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
 void start()
          Starts the service
 void stop()
          Stops the service
 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, getEvicted, getHits, getMaxCacheSize, getMisses, keySet, onEviction, resetStatistics
 
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

start

public void start()
           throws Exception
Description copied from interface: Service
Starts the service

Specified by:
start in interface Service
Throws:
Exception - is thrown if starting failed

stop

public void stop()
          throws Exception
Description copied from interface: Service
Stops the service

Specified by:
stop in interface Service
Throws:
Exception - is thrown if stopping failed

purge

public void purge()
Purges the cache


toString

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


Apache CAMEL