Class EhcacheConfiguration
java.lang.Object
org.apache.camel.component.ehcache.EhcacheConfiguration
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfigurations(Map<String, org.ehcache.config.CacheConfiguration> configurations) copy()org.ehcache.CacheManagerorg.ehcache.config.Configurationorg.ehcache.config.CacheConfiguration<?, ?> A map of cache configuration to be used to create caches.Deprecated.org.ehcache.event.EventFiringorg.ehcache.event.EventOrderingSet<org.ehcache.event.EventType> getKey()booleanbooleanbooleanbooleanhasConfiguration(String name) booleanbooleanvoidTo configure the default cache action.voidsetCacheManager(org.ehcache.CacheManager cacheManager) The cache managervoidsetCacheManagerConfiguration(org.ehcache.config.Configuration cacheManagerConfiguration) The cache manager configurationvoidsetConfiguration(org.ehcache.config.CacheConfiguration<?, ?> configuration) The default cache configuration to be used to create caches.voidsetConfigurations(Map<String, org.ehcache.config.CacheConfiguration> configurations) voidsetConfigurationUri(String configurationUri) URI pointing to the Ehcache XML configuration file's locationvoidsetConfigUri(String configUri) Deprecated.usesetConfigurationUri(String)insteadvoidsetCreateCacheIfNotExist(boolean createCacheIfNotExist) Configure if a cache need to be created if it does exist or can't be pre-configured.voidsetEventFiring(String eventFiring) Set the delivery mode (synchronous, asynchronous)voidsetEventFiring(org.ehcache.event.EventFiring eventFiring) voidsetEventOrdering(String eventOrdering) Set the delivery mode (ordered, unordered)voidsetEventOrdering(org.ehcache.event.EventOrdering eventOrdering) voidsetEventTypes(String eventTypes) Set the type of events to listen for (EVICTED,EXPIRED,REMOVED,CREATED,UPDATED).voidTo configure the default action key.voidsetKeyType(String keyType) The cache key type, default "java.lang.Object"voidsetValueType(String valueType) The cache value type, default "java.lang.Object"
-
Constructor Details
-
EhcacheConfiguration
public EhcacheConfiguration()
-
-
Method Details
-
setConfigurationUri
URI pointing to the Ehcache XML configuration file's location -
getConfigurationUri
-
hasConfigurationUri
public boolean hasConfigurationUri() -
getConfigUri
Deprecated.usegetConfigurationUri()instead -
setConfigUri
@Deprecated @Metadata(deprecationNote="use configurationUri instead") public void setConfigUri(String configUri) Deprecated.usesetConfigurationUri(String)insteadURI pointing to the Ehcache XML configuration file's location -
isCreateCacheIfNotExist
public boolean isCreateCacheIfNotExist() -
setCreateCacheIfNotExist
public void setCreateCacheIfNotExist(boolean createCacheIfNotExist) Configure if a cache need to be created if it does exist or can't be pre-configured. -
getAction
-
setAction
To configure the default cache action. If an action is set in the message header, then the operation from the header takes precedence. -
getKey
-
setKey
To configure the default action key. If a key is set in the message header, then the key from the header takes precedence. -
getCacheManager
public org.ehcache.CacheManager getCacheManager() -
setCacheManager
public void setCacheManager(org.ehcache.CacheManager cacheManager) The cache manager -
hasCacheManager
public boolean hasCacheManager() -
getCacheManagerConfiguration
public org.ehcache.config.Configuration getCacheManagerConfiguration() -
setCacheManagerConfiguration
public void setCacheManagerConfiguration(org.ehcache.config.Configuration cacheManagerConfiguration) The cache manager configuration -
hasCacheManagerConfiguration
public boolean hasCacheManagerConfiguration() -
getEventOrdering
public org.ehcache.event.EventOrdering getEventOrdering() -
setEventOrdering
Set the delivery mode (ordered, unordered) -
setEventOrdering
public void setEventOrdering(org.ehcache.event.EventOrdering eventOrdering) -
getEventFiring
public org.ehcache.event.EventFiring getEventFiring() -
setEventFiring
Set the delivery mode (synchronous, asynchronous) -
setEventFiring
public void setEventFiring(org.ehcache.event.EventFiring eventFiring) -
getEventTypes
-
getEventTypesSet
-
setEventTypes
Set the type of events to listen for (EVICTED,EXPIRED,REMOVED,CREATED,UPDATED). You can specify multiple entries separated by comma. -
setConfiguration
public void setConfiguration(org.ehcache.config.CacheConfiguration<?, ?> configuration) The default cache configuration to be used to create caches. -
getConfiguration
public org.ehcache.config.CacheConfiguration<?,?> getConfiguration() -
hasConfiguration
public boolean hasConfiguration() -
hasConfiguration
-
getConfigurations
A map of cache configuration to be used to create caches. -
setConfigurations
-
addConfigurations
-
getKeyType
-
setKeyType
The cache key type, default "java.lang.Object" -
getValueType
-
setValueType
The cache value type, default "java.lang.Object" -
copy
-
getConfigurationUri()instead