Class EhcacheConfiguration
- java.lang.Object
-
- org.apache.camel.component.ehcache.EhcacheConfiguration
-
-
Constructor Summary
Constructors Constructor Description EhcacheConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addConfigurations(Map<String,org.ehcache.config.CacheConfiguration> configurations)
EhcacheConfiguration
copy()
String
getAction()
org.ehcache.CacheManager
getCacheManager()
org.ehcache.config.Configuration
getCacheManagerConfiguration()
org.ehcache.config.CacheConfiguration<?,?>
getConfiguration()
Map<String,org.ehcache.config.CacheConfiguration>
getConfigurations()
A map of cache configuration to be used to create caches.String
getConfigurationUri()
String
getConfigUri()
Deprecated.usegetConfigurationUri()
insteadorg.ehcache.event.EventFiring
getEventFiring()
org.ehcache.event.EventOrdering
getEventOrdering()
String
getEventTypes()
Set<org.ehcache.event.EventType>
getEventTypesSet()
Object
getKey()
String
getKeyType()
String
getValueType()
boolean
hasCacheManager()
boolean
hasCacheManagerConfiguration()
boolean
hasConfiguration()
boolean
hasConfiguration(String name)
boolean
hasConfigurationUri()
boolean
isCreateCacheIfNotExist()
void
setAction(String action)
To configure the default cache action.void
setCacheManager(org.ehcache.CacheManager cacheManager)
The cache managervoid
setCacheManagerConfiguration(org.ehcache.config.Configuration cacheManagerConfiguration)
The cache manager configurationvoid
setConfiguration(org.ehcache.config.CacheConfiguration<?,?> configuration)
The default cache configuration to be used to create caches.void
setConfigurations(Map<String,org.ehcache.config.CacheConfiguration> configurations)
void
setConfigurationUri(String configurationUri)
URI pointing to the Ehcache XML configuration file's locationvoid
setConfigUri(String configUri)
Deprecated.usesetConfigurationUri(String)
insteadvoid
setCreateCacheIfNotExist(boolean createCacheIfNotExist)
Configure if a cache need to be created if it does exist or can't be pre-configured.void
setEventFiring(String eventFiring)
Set the delivery mode (synchronous, asynchronous)void
setEventFiring(org.ehcache.event.EventFiring eventFiring)
void
setEventOrdering(String eventOrdering)
Set the delivery mode (ordered, unordered)void
setEventOrdering(org.ehcache.event.EventOrdering eventOrdering)
void
setEventTypes(String eventTypes)
Set the type of events to listen for (EVICTED,EXPIRED,REMOVED,CREATED,UPDATED).void
setKey(Object key)
To configure the default action key.void
setKeyType(String keyType)
The cache key type, default "java.lang.Object"void
setValueType(String valueType)
The cache value type, default "java.lang.Object"
-
-
-
Method Detail
-
setConfigurationUri
public void setConfigurationUri(String configurationUri)
URI pointing to the Ehcache XML configuration file's location
-
getConfigurationUri
public String getConfigurationUri()
-
hasConfigurationUri
public boolean hasConfigurationUri()
-
getConfigUri
@Deprecated public String 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
public String getAction()
-
setAction
public void setAction(String action)
To configure the default cache action. If an action is set in the message header, then the operation from the header takes precedence.
-
getKey
public Object getKey()
-
setKey
public void setKey(Object key)
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
public void setEventOrdering(String eventOrdering)
Set the delivery mode (ordered, unordered)
-
setEventOrdering
public void setEventOrdering(org.ehcache.event.EventOrdering eventOrdering)
-
getEventFiring
public org.ehcache.event.EventFiring getEventFiring()
-
setEventFiring
public void setEventFiring(String eventFiring)
Set the delivery mode (synchronous, asynchronous)
-
setEventFiring
public void setEventFiring(org.ehcache.event.EventFiring eventFiring)
-
getEventTypes
public String getEventTypes()
-
getEventTypesSet
public Set<org.ehcache.event.EventType> getEventTypesSet()
-
setEventTypes
public void setEventTypes(String eventTypes)
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
public boolean hasConfiguration(String name)
-
getConfigurations
public Map<String,org.ehcache.config.CacheConfiguration> getConfigurations()
A map of cache configuration to be used to create caches.
-
setConfigurations
public void setConfigurations(Map<String,org.ehcache.config.CacheConfiguration> configurations)
-
addConfigurations
public void addConfigurations(Map<String,org.ehcache.config.CacheConfiguration> configurations)
-
getKeyType
public String getKeyType()
-
setKeyType
public void setKeyType(String keyType)
The cache key type, default "java.lang.Object"
-
getValueType
public String getValueType()
-
setValueType
public void setValueType(String valueType)
The cache value type, default "java.lang.Object"
-
copy
public EhcacheConfiguration copy()
-
-