public class EndpointRegistry extends LRUSoftCache<org.apache.camel.impl.EndpointKey,Endpoint> implements StaticService
LRUSoftCache
.
We use a soft reference cache to allow the JVM to re-claim memory if it runs low on memory.Constructor and Description |
---|
EndpointRegistry(CamelContext context) |
EndpointRegistry(CamelContext context,
Map<org.apache.camel.impl.EndpointKey,Endpoint> endpoints) |
Modifier and Type | Method and Description |
---|---|
void |
purge()
Purges the cache
|
void |
start()
Starts the service
|
void |
stop()
Stops the service
|
String |
toString() |
containsKey, entrySet, get, isEmpty, put, putAll, remove, size, values
clear, containsValue, getEvicted, getHits, getMaxCacheSize, getMisses, keySet, onEviction, resetStatistics
public EndpointRegistry(CamelContext context)
public EndpointRegistry(CamelContext context, Map<org.apache.camel.impl.EndpointKey,Endpoint> endpoints)
public void start() throws Exception
Service
public void stop() throws Exception
Service
public void purge()
public String toString()
toString
in class LRUSoftCache<org.apache.camel.impl.EndpointKey,Endpoint>
Apache Camel