org.apache.camel.component.cache
Class CacheEndpoint

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by 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


Constructor Summary
CacheEndpoint()
           
CacheEndpoint(String endpointUri, org.apache.camel.Component component, CacheConfiguration config, CacheManagerFactory cacheManagerFactory)
           
 
Method Summary
 org.apache.camel.Exchange createCacheExchange(String operation, String key, Object value)
           
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
           
 org.apache.camel.Producer createProducer()
           
 CacheManagerFactory getCacheManagerFactory()
           
 CacheConfiguration getConfig()
           
 net.sf.ehcache.Ehcache initializeCache()
          Returns Cache instance or create new one if not exists.
 boolean isSingleton()
           
 void setCacheManagerFactory(CacheManagerFactory cacheManagerFactory)
           
 void setConfig(CacheConfiguration config)
           
 void stop()
           
 
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
 

Constructor Detail

CacheEndpoint

public CacheEndpoint()

CacheEndpoint

public CacheEndpoint(String endpointUri,
                     org.apache.camel.Component component,
                     CacheConfiguration config,
                     CacheManagerFactory cacheManagerFactory)
Method Detail

createConsumer

public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
                                         throws Exception
Throws:
Exception

createProducer

public org.apache.camel.Producer createProducer()
                                         throws Exception
Throws:
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(String operation,
                                                     String key,
                                                     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