Class JCacheConfiguration
- java.lang.Object
-
- org.apache.camel.component.jcache.JCacheConfiguration
-
@UriParams public class JCacheConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description JCacheConfiguration()
JCacheConfiguration(String cacheName)
JCacheConfiguration(org.apache.camel.CamelContext camelContext, String cacheName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAction()
ClassLoader
getApplicationContextClassLoader()
javax.cache.configuration.Configuration
getCacheConfiguration()
AConfiguration
for theCache
Properties
getCacheConfigurationProperties()
javax.cache.configuration.Factory<javax.cache.integration.CacheLoader>
getCacheLoaderFactory()
TheCacheLoader
factoryString
getCacheName()
javax.cache.configuration.Factory<javax.cache.integration.CacheWriter>
getCacheWriterFactory()
TheCacheWriter
factoryString
getCachingProvider()
The fully qualified class name of theCachingProvider
org.apache.camel.CamelContext
getCamelContext()
String
getConfigurationUri()
An implementation specific URI for theCacheManager
List<javax.cache.event.CacheEntryEventFilter>
getEventFilters()
The CacheEntryEventFilter.javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy>
getExpiryPolicyFactory()
TheExpiryPolicy
factoryString
getFilteredEvents()
Events a consumer should filter (multiple events can be separated by comma).boolean
isCreateCacheIfNotExists()
boolean
isLookupProviders()
boolean
isManagementEnabled()
Whether management gathering is enabledboolean
isOldValueRequired()
if the old value is required for eventsboolean
isReadThrough()
If read-through caching should be usedboolean
isStatisticsEnabled()
Whether statistics gathering is enabledboolean
isStoreByValue()
If cache should use store-by-value or store-by-reference semanticsboolean
isSynchronous()
if the event listener should block the thread causing the eventboolean
isWriteThrough()
If write-through caching should be usedvoid
setAction(String action)
To configure using a cache operation by default.void
setCacheConfiguration(javax.cache.configuration.Configuration cacheConfiguration)
void
setCacheConfigurationProperties(Properties cacheConfigurationProperties)
void
setCacheLoaderFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheLoader> cacheLoaderFactory)
void
setCacheName(String cacheName)
void
setCacheWriterFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheWriter> cacheWriterFactory)
void
setCachingProvider(String cachingProvider)
void
setCamelContext(org.apache.camel.CamelContext camelContext)
void
setConfigurationUri(String configurationUri)
void
setCreateCacheIfNotExists(boolean createCacheIfNotExists)
Configure if a cache need to be created if it does exist or can't be pre-configured.void
setEventFilters(String eventFilter)
void
setEventFilters(List<javax.cache.event.CacheEntryEventFilter> eventFilters)
void
setExpiryPolicyFactory(javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> expiryPolicyFactory)
void
setFilteredEvents(String filteredEvents)
void
setLookupProviders(boolean lookupProviders)
Configure if a camel-cache should try to find implementations of jcache api in runtimes like OSGi.void
setManagementEnabled(boolean managementEnabled)
void
setOldValueRequired(boolean oldValueRequired)
void
setReadThrough(boolean readThrough)
void
setStatisticsEnabled(boolean statisticsEnabled)
void
setStoreByValue(boolean storeByValue)
void
setSynchronous(boolean synchronous)
void
setWriteThrough(boolean writeThrough)
-
-
-
Method Detail
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
-
getCacheName
public String getCacheName()
-
setCacheName
public void setCacheName(String cacheName)
-
getApplicationContextClassLoader
public ClassLoader getApplicationContextClassLoader()
-
getCachingProvider
public String getCachingProvider()
The fully qualified class name of theCachingProvider
-
setCachingProvider
public void setCachingProvider(String cachingProvider)
-
getCacheConfiguration
public javax.cache.configuration.Configuration getCacheConfiguration()
AConfiguration
for theCache
-
setCacheConfiguration
public void setCacheConfiguration(javax.cache.configuration.Configuration cacheConfiguration)
-
getCacheConfigurationProperties
public Properties getCacheConfigurationProperties()
-
setCacheConfigurationProperties
public void setCacheConfigurationProperties(Properties cacheConfigurationProperties)
-
getConfigurationUri
public String getConfigurationUri()
An implementation specific URI for theCacheManager
-
setConfigurationUri
public void setConfigurationUri(String configurationUri)
-
getCacheLoaderFactory
public javax.cache.configuration.Factory<javax.cache.integration.CacheLoader> getCacheLoaderFactory()
TheCacheLoader
factory
-
setCacheLoaderFactory
public void setCacheLoaderFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheLoader> cacheLoaderFactory)
-
getCacheWriterFactory
public javax.cache.configuration.Factory<javax.cache.integration.CacheWriter> getCacheWriterFactory()
TheCacheWriter
factory
-
setCacheWriterFactory
public void setCacheWriterFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheWriter> cacheWriterFactory)
-
getExpiryPolicyFactory
public javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> getExpiryPolicyFactory()
TheExpiryPolicy
factory
-
setExpiryPolicyFactory
public void setExpiryPolicyFactory(javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> expiryPolicyFactory)
-
isReadThrough
public boolean isReadThrough()
If read-through caching should be used
-
setReadThrough
public void setReadThrough(boolean readThrough)
-
isWriteThrough
public boolean isWriteThrough()
If write-through caching should be used
-
setWriteThrough
public void setWriteThrough(boolean writeThrough)
-
isStoreByValue
public boolean isStoreByValue()
If cache should use store-by-value or store-by-reference semantics
-
setStoreByValue
public void setStoreByValue(boolean storeByValue)
-
isStatisticsEnabled
public boolean isStatisticsEnabled()
Whether statistics gathering is enabled
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean statisticsEnabled)
-
isManagementEnabled
public boolean isManagementEnabled()
Whether management gathering is enabled
-
setManagementEnabled
public void setManagementEnabled(boolean managementEnabled)
-
getFilteredEvents
public String getFilteredEvents()
Events a consumer should filter (multiple events can be separated by comma). If using filteredEvents option, then eventFilters one will be ignored
-
setFilteredEvents
public void setFilteredEvents(String filteredEvents)
-
getEventFilters
public List<javax.cache.event.CacheEntryEventFilter> getEventFilters()
The CacheEntryEventFilter. If using eventFilters option, then filteredEvents one will be ignored
-
setEventFilters
public void setEventFilters(List<javax.cache.event.CacheEntryEventFilter> eventFilters)
-
setEventFilters
public void setEventFilters(String eventFilter)
-
isOldValueRequired
public boolean isOldValueRequired()
if the old value is required for events
-
setOldValueRequired
public void setOldValueRequired(boolean oldValueRequired)
-
isSynchronous
public boolean isSynchronous()
if the event listener should block the thread causing the event
-
setSynchronous
public void setSynchronous(boolean synchronous)
-
getAction
public String getAction()
-
setAction
public void setAction(String action)
To configure using a cache operation by default. If an operation in the message header, then the operation from the header takes precedence.
-
isCreateCacheIfNotExists
public boolean isCreateCacheIfNotExists()
-
setCreateCacheIfNotExists
public void setCreateCacheIfNotExists(boolean createCacheIfNotExists)
Configure if a cache need to be created if it does exist or can't be pre-configured.
-
isLookupProviders
public boolean isLookupProviders()
-
setLookupProviders
public void setLookupProviders(boolean lookupProviders)
Configure if a camel-cache should try to find implementations of jcache api in runtimes like OSGi.
-
-