@UriEndpoint(scheme="cache",
title="EHCache",
syntax="cache:cacheName",
consumerClass=CacheConsumer.class,
label="cache")
public class CacheEndpoint
extends DefaultEndpoint
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
CacheEndpoint() |
CacheEndpoint(String endpointUri,
Component component,
CacheConfiguration config,
CacheManagerFactory cacheManagerFactory) |
| Modifier and Type | Method and Description |
|---|---|
Exchange |
createCacheExchange(String operation,
String key,
Object value) |
Consumer |
createConsumer(Processor processor)
Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
|
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint
|
CacheManagerFactory |
getCacheManagerFactory() |
CacheConfiguration |
getConfig() |
String |
getKey() |
String |
getOperation() |
net.sf.ehcache.Ehcache |
initializeCache()
Returns
Cache instance or create new one if not exists. |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
void |
setCacheManagerFactory(CacheManagerFactory cacheManagerFactory)
To use a custom CacheManagerFactory for creating the CacheManager to be used by this endpoint.
|
void |
setConfig(CacheConfiguration config) |
void |
setKey(String key)
The default key to use.
|
void |
setOperation(String operation)
The default cache operation to use.
|
void |
stop()
Stops the service
|
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, suspendpublic CacheEndpoint()
public CacheEndpoint(String endpointUri, Component component, CacheConfiguration config, CacheManagerFactory cacheManagerFactory)
public Consumer createConsumer(Processor processor) throws Exception
Endpointprocessor - the given processorException - can be thrownpublic Producer createProducer() throws Exception
EndpointException - can be thrownpublic boolean isSingleton()
IsSingletonpublic CacheConfiguration getConfig()
public void setConfig(CacheConfiguration config)
public CacheManagerFactory getCacheManagerFactory()
public void setCacheManagerFactory(CacheManagerFactory cacheManagerFactory)
public net.sf.ehcache.Ehcache initializeCache()
Cache instance or create new one if not exists.Cachepublic void stop()
Servicestop in interface Servicestop in class ServiceSupportpublic String getOperation()
public void setOperation(String operation)
public String getKey()
public void setKey(String key)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.