org.apache.camel.component.cache
Class CacheEndpoint
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.cache.CacheEndpoint
- All Implemented Interfaces:
- org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId
public class CacheEndpoint
- extends org.apache.camel.impl.DefaultEndpoint
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, suspend |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.camel.Service |
start |
CacheEndpoint
public CacheEndpoint()
CacheEndpoint
public CacheEndpoint(java.lang.String endpointUri,
org.apache.camel.Component component,
CacheConfiguration config,
CacheManagerFactory cacheManagerFactory)
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws java.lang.Exception
- Throws:
java.lang.Exception
createProducer
public org.apache.camel.Producer createProducer()
throws java.lang.Exception
- Throws:
java.lang.Exception
isSingleton
public boolean isSingleton()
getConfig
public CacheConfiguration getConfig()
setConfig
public void setConfig(CacheConfiguration config)
getCacheManagerFactory
public CacheManagerFactory getCacheManagerFactory()
setCacheManagerFactory
public void setCacheManagerFactory(CacheManagerFactory cacheManagerFactory)
createCacheExchange
public org.apache.camel.Exchange createCacheExchange(java.lang.String operation,
java.lang.String key,
java.lang.Object value)
initializeCache
public net.sf.ehcache.Ehcache initializeCache()
- Returns
Cache instance or create new one if not exists.
- Returns:
Cache
stop
public void stop()
- Specified by:
stop in interface org.apache.camel.Service- Overrides:
stop in class org.apache.camel.impl.ServiceSupport
Apache CAMEL