Class JCacheConfiguration

java.lang.Object
org.apache.camel.component.jcache.JCacheConfiguration

@UriParams public class JCacheConfiguration extends Object
  • Constructor Details

    • JCacheConfiguration

      public JCacheConfiguration()
    • JCacheConfiguration

      public JCacheConfiguration(String cacheName)
    • JCacheConfiguration

      public JCacheConfiguration(org.apache.camel.CamelContext camelContext, String cacheName)
  • Method Details

    • 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 the CachingProvider
    • setCachingProvider

      public void setCachingProvider(String cachingProvider)
    • getCacheConfiguration

      public javax.cache.configuration.Configuration getCacheConfiguration()
      A Configuration for the Cache
    • setCacheConfiguration

      public void setCacheConfiguration(javax.cache.configuration.Configuration cacheConfiguration)
    • getCacheConfigurationProperties

      public Properties getCacheConfigurationProperties()
      The Properties for the CachingProvider to create the CacheManager
    • setCacheConfigurationProperties

      public void setCacheConfigurationProperties(Properties cacheConfigurationProperties)
    • getConfigurationUri

      public String getConfigurationUri()
      An implementation specific URI for the CacheManager
    • setConfigurationUri

      public void setConfigurationUri(String configurationUri)
    • getCacheLoaderFactory

      public javax.cache.configuration.Factory<javax.cache.integration.CacheLoader> getCacheLoaderFactory()
      The CacheLoader 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()
      The CacheWriter 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()
      The ExpiryPolicy 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.