Class JCacheConfiguration
java.lang.Object
org.apache.camel.component.jcache.JCacheConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionJCacheConfiguration
(String cacheName) JCacheConfiguration
(org.apache.camel.CamelContext camelContext, String cacheName) -
Method Summary
Modifier and TypeMethodDescriptionjavax.cache.configuration.Configuration
AConfiguration
for theCache
javax.cache.configuration.Factory
<javax.cache.integration.CacheLoader> TheCacheLoader
factoryjavax.cache.configuration.Factory
<javax.cache.integration.CacheWriter> TheCacheWriter
factoryThe fully qualified class name of theCachingProvider
org.apache.camel.CamelContext
An implementation specific URI for theCacheManager
List
<javax.cache.event.CacheEntryEventFilter> The CacheEntryEventFilter.javax.cache.configuration.Factory
<javax.cache.expiry.ExpiryPolicy> TheExpiryPolicy
factoryEvents a consumer should filter (multiple events can be separated by comma).boolean
boolean
boolean
Whether management gathering is enabledboolean
if the old value is required for eventsboolean
If read-through caching should be usedboolean
Whether statistics gathering is enabledboolean
If cache should use store-by-value or store-by-reference semanticsboolean
if the event listener should block the thread causing the eventboolean
If write-through caching should be usedvoid
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)
-
Constructor Details
-
JCacheConfiguration
public JCacheConfiguration() -
JCacheConfiguration
-
JCacheConfiguration
-
-
Method Details
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext() -
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) -
getCacheName
-
setCacheName
-
getApplicationContextClassLoader
-
getCachingProvider
The fully qualified class name of theCachingProvider
-
setCachingProvider
-
getCacheConfiguration
public javax.cache.configuration.Configuration getCacheConfiguration()AConfiguration
for theCache
-
setCacheConfiguration
public void setCacheConfiguration(javax.cache.configuration.Configuration cacheConfiguration) -
getCacheConfigurationProperties
-
setCacheConfigurationProperties
-
getConfigurationUri
An implementation specific URI for theCacheManager
-
setConfigurationUri
-
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
Events a consumer should filter (multiple events can be separated by comma). If using filteredEvents option, then eventFilters one will be ignored -
setFilteredEvents
-
getEventFilters
The CacheEntryEventFilter. If using eventFilters option, then filteredEvents one will be ignored -
setEventFilters
-
setEventFilters
-
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
-
setAction
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.
-