@UriParams public class EhcacheConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PREFIX_CONF |
static String |
PREFIX_POOL |
Modifier and Type | Method and Description |
---|---|
String |
getAction() |
org.ehcache.CacheManager |
getCacheManager() |
String |
getCacheName() |
<K,V> org.ehcache.config.CacheConfiguration<K,V> |
getConfiguration() |
String |
getConfigUri() |
URL |
getConfigUriAsUrl() |
org.apache.camel.CamelContext |
getContext() |
org.ehcache.event.EventFiring |
getEventFiring() |
org.ehcache.event.EventOrdering |
getEventOrdering() |
Set<org.ehcache.event.EventType> |
getEventTypes() |
Object |
getKey() |
Class<?> |
getKeyType() |
<K,V> org.ehcache.config.CacheConfiguration<K,V> |
getMandatoryConfiguration() |
Class<?> |
getValueType() |
boolean |
hasCacheManager() |
boolean |
isCreateCacheIfNotExist() |
void |
setAction(String action)
To configure the default cache action.
|
void |
setCacheManager(org.ehcache.CacheManager cacheManager)
The cache manager
|
<K,V> void |
setConfiguration(org.ehcache.config.CacheConfiguration<K,V> configuration)
The default cache configuration to be used to create caches.
|
void |
setConfigUri(String configUri)
URI pointing to the Ehcache XML configuration file's location
|
void |
setCreateCacheIfNotExist(boolean createCacheIfNotExist)
Configure if a cache need to be created if it does exist or can't be
pre-configured.
|
void |
setEventFiring(org.ehcache.event.EventFiring eventFiring) |
void |
setEventFiring(String eventFiring)
Set the the delivery mode (synchronous, asynchronous)
|
void |
setEventOrdering(org.ehcache.event.EventOrdering eventOrdering) |
void |
setEventOrdering(String eventOrdering)
Set the the delivery mode (ordered, unordered)
|
void |
setEventTypes(Set<org.ehcache.event.EventType> eventTypes) |
void |
setEventTypes(String eventTypesString)
Set the type of events to listen for
|
void |
setKey(Object key)
To configure the default action key.
|
void |
setKeyType(Class<?> keyType)
The cache key type, default Object.class
|
void |
setKeyType(String keyType) |
void |
setValueType(Class<?> valueType)
The cache value type, default Object.class
|
void |
setValueType(String valueType) |
public static final String PREFIX_CONF
public static final String PREFIX_POOL
public org.apache.camel.CamelContext getContext()
public String getCacheName()
public String getConfigUri()
public URL getConfigUriAsUrl() throws IOException
IOException
public void setConfigUri(String configUri)
public boolean isCreateCacheIfNotExist()
public void setCreateCacheIfNotExist(boolean createCacheIfNotExist)
public String getAction()
public void setAction(String action)
public Object getKey()
public void setKey(Object key)
public org.ehcache.CacheManager getCacheManager()
public void setCacheManager(org.ehcache.CacheManager cacheManager)
public boolean hasCacheManager()
public org.ehcache.event.EventOrdering getEventOrdering()
public void setEventOrdering(String eventOrdering)
public void setEventOrdering(org.ehcache.event.EventOrdering eventOrdering)
public org.ehcache.event.EventFiring getEventFiring()
public void setEventFiring(String eventFiring)
public void setEventFiring(org.ehcache.event.EventFiring eventFiring)
public Set<org.ehcache.event.EventType> getEventTypes()
public void setEventTypes(String eventTypesString)
public void setEventTypes(Set<org.ehcache.event.EventType> eventTypes)
public <K,V> void setConfiguration(org.ehcache.config.CacheConfiguration<K,V> configuration)
public <K,V> org.ehcache.config.CacheConfiguration<K,V> getConfiguration()
public <K,V> org.ehcache.config.CacheConfiguration<K,V> getMandatoryConfiguration()
public Class<?> getKeyType()
public void setKeyType(Class<?> keyType)
public void setKeyType(String keyType) throws ClassNotFoundException
ClassNotFoundException
public Class<?> getValueType()
public void setValueType(Class<?> valueType)
public void setValueType(String valueType) throws ClassNotFoundException
ClassNotFoundException
Apache Camel