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.ConfigurationAConfigurationfor theCachejavax.cache.configuration.Factory<javax.cache.integration.CacheLoader> TheCacheLoaderfactoryjavax.cache.configuration.Factory<javax.cache.integration.CacheWriter> TheCacheWriterfactoryThe fully qualified class name of theCachingProviderorg.apache.camel.CamelContextAn implementation specific URI for theCacheManagerList<javax.cache.event.CacheEntryEventFilter> The CacheEntryEventFilter.javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> TheExpiryPolicyfactoryEvents a consumer should filter (multiple events can be separated by comma).booleanbooleanbooleanWhether management gathering is enabledbooleanif the old value is required for eventsbooleanIf read-through caching should be usedbooleanWhether statistics gathering is enabledbooleanIf cache should use store-by-value or store-by-reference semanticsbooleanif the event listener should block the thread causing the eventbooleanIf write-through caching should be usedvoidTo configure using a cache operation by default.voidsetCacheConfiguration(javax.cache.configuration.Configuration cacheConfiguration) voidsetCacheConfigurationProperties(Properties cacheConfigurationProperties) voidsetCacheLoaderFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheLoader> cacheLoaderFactory) voidsetCacheName(String cacheName) voidsetCacheWriterFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheWriter> cacheWriterFactory) voidsetCachingProvider(String cachingProvider) voidsetCamelContext(org.apache.camel.CamelContext camelContext) voidsetConfigurationUri(String configurationUri) voidsetCreateCacheIfNotExists(boolean createCacheIfNotExists) Configure if a cache need to be created if it does exist or can't be pre-configured.voidsetEventFilters(String eventFilter) voidsetEventFilters(List<javax.cache.event.CacheEntryEventFilter> eventFilters) voidsetExpiryPolicyFactory(javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> expiryPolicyFactory) voidsetFilteredEvents(String filteredEvents) voidsetLookupProviders(boolean lookupProviders) Configure if a camel-cache should try to find implementations of jcache api in runtimes like OSGi.voidsetManagementEnabled(boolean managementEnabled) voidsetOldValueRequired(boolean oldValueRequired) voidsetReadThrough(boolean readThrough) voidsetStatisticsEnabled(boolean statisticsEnabled) voidsetStoreByValue(boolean storeByValue) voidsetSynchronous(boolean synchronous) voidsetWriteThrough(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()AConfigurationfor 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()TheCacheLoaderfactory -
setCacheLoaderFactory
public void setCacheLoaderFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheLoader> cacheLoaderFactory) -
getCacheWriterFactory
public javax.cache.configuration.Factory<javax.cache.integration.CacheWriter> getCacheWriterFactory()TheCacheWriterfactory -
setCacheWriterFactory
public void setCacheWriterFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheWriter> cacheWriterFactory) -
getExpiryPolicyFactory
public javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> getExpiryPolicyFactory()TheExpiryPolicyfactory -
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.
-