@UriParams public class JCacheConfiguration extends Object
Constructor and Description |
---|
JCacheConfiguration() |
JCacheConfiguration(org.apache.camel.CamelContext camelContext,
String cacheName) |
JCacheConfiguration(String cacheName) |
Modifier and Type | Method and Description |
---|---|
String |
getAction() |
ClassLoader |
getApplicationContextClassLoader() |
javax.cache.configuration.Configuration |
getCacheConfiguration()
A
Configuration for the Cache |
Properties |
getCacheConfigurationProperties()
|
javax.cache.configuration.Factory<javax.cache.integration.CacheLoader> |
getCacheLoaderFactory()
The
CacheLoader factory |
String |
getCacheName() |
javax.cache.configuration.Factory<javax.cache.integration.CacheWriter> |
getCacheWriterFactory()
The
CacheWriter factory |
String |
getCachingProvider()
The fully qualified class name of the
CachingProvider |
org.apache.camel.CamelContext |
getCamelContext() |
String |
getConfigurationUri()
An implementation specific URI for the
CacheManager |
List<javax.cache.event.CacheEntryEventFilter> |
getEventFilters()
The CacheEntryEventFilter.
|
javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> |
getExpiryPolicyFactory()
The
ExpiryPolicy factory |
List<javax.cache.event.EventType> |
getFilteredEvents()
Events a consumer should filter.
|
boolean |
isCreateCacheIfNotExists() |
boolean |
isLookupProviders() |
boolean |
isManagementEnabled()
Whether management gathering is enabled
|
boolean |
isOldValueRequired()
if the old value is required for events
|
boolean |
isReadThrough()
If read-through caching should be used
|
boolean |
isStatisticsEnabled()
Whether statistics gathering is enabled
|
boolean |
isStoreByValue()
If cache should use store-by-value or store-by-reference semantics
|
boolean |
isSynchronous()
if the event listener should block the thread causing the event
|
boolean |
isWriteThrough()
If write-through caching should be used
|
void |
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(List<javax.cache.event.CacheEntryEventFilter> eventFilters) |
void |
setEventFilters(String eventFilter) |
void |
setExpiryPolicyFactory(javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> expiryPolicyFactory) |
void |
setFilteredEvents(List<javax.cache.event.EventType> filteredEvents) |
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) |
public JCacheConfiguration()
public JCacheConfiguration(String cacheName)
public JCacheConfiguration(org.apache.camel.CamelContext camelContext, String cacheName)
public org.apache.camel.CamelContext getCamelContext()
public void setCamelContext(org.apache.camel.CamelContext camelContext)
public String getCacheName()
public void setCacheName(String cacheName)
public ClassLoader getApplicationContextClassLoader()
public String getCachingProvider()
CachingProvider
public void setCachingProvider(String cachingProvider)
public javax.cache.configuration.Configuration getCacheConfiguration()
Configuration
for the Cache
public void setCacheConfiguration(javax.cache.configuration.Configuration cacheConfiguration)
public Properties getCacheConfigurationProperties()
public void setCacheConfigurationProperties(Properties cacheConfigurationProperties)
public String getConfigurationUri()
CacheManager
public void setConfigurationUri(String configurationUri)
public javax.cache.configuration.Factory<javax.cache.integration.CacheLoader> getCacheLoaderFactory()
CacheLoader
factorypublic void setCacheLoaderFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheLoader> cacheLoaderFactory)
public javax.cache.configuration.Factory<javax.cache.integration.CacheWriter> getCacheWriterFactory()
CacheWriter
factorypublic void setCacheWriterFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheWriter> cacheWriterFactory)
public javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> getExpiryPolicyFactory()
ExpiryPolicy
factorypublic void setExpiryPolicyFactory(javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> expiryPolicyFactory)
public boolean isReadThrough()
public void setReadThrough(boolean readThrough)
public boolean isWriteThrough()
public void setWriteThrough(boolean writeThrough)
public boolean isStoreByValue()
public void setStoreByValue(boolean storeByValue)
public boolean isStatisticsEnabled()
public void setStatisticsEnabled(boolean statisticsEnabled)
public boolean isManagementEnabled()
public void setManagementEnabled(boolean managementEnabled)
public List<javax.cache.event.EventType> getFilteredEvents()
public void setFilteredEvents(List<javax.cache.event.EventType> filteredEvents)
public void setFilteredEvents(String filteredEvents)
public List<javax.cache.event.CacheEntryEventFilter> getEventFilters()
public void setEventFilters(List<javax.cache.event.CacheEntryEventFilter> eventFilters)
public void setEventFilters(String eventFilter)
public boolean isOldValueRequired()
public void setOldValueRequired(boolean oldValueRequired)
public boolean isSynchronous()
public void setSynchronous(boolean synchronous)
public String getAction()
public void setAction(String action)
public boolean isCreateCacheIfNotExists()
public void setCreateCacheIfNotExists(boolean createCacheIfNotExists)
public boolean isLookupProviders()
public void setLookupProviders(boolean lookupProviders)
Apache Camel