org.apache.camel.impl
Class EndpointRegistry
java.lang.Object
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:
- 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 classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
EndpointRegistry
public EndpointRegistry(CamelContext context)
EndpointRegistry
public EndpointRegistry(CamelContext context,
Map<org.apache.camel.impl.EndpointKey,Endpoint> endpoints)
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