The jcache component enables you to perform caching operations using JSR107/JCache as cache implementation.
Name | Kind | Group | Required | Default | Type | Enum | Description |
---|---|---|---|---|---|---|---|
cacheName | path | common | true | java.lang.String | the cache name | ||
managementEnabled | parameter | common | boolean | Whether management gathering is enabled | |||
readThrough | parameter | common | boolean | If read-through caching should be used | |||
statisticsEnabled | parameter | common | boolean | Whether statistics gathering is enabled | |||
storeByValue | parameter | common | true | boolean | If cache should use store-by-value or store-by-reference semantics | ||
writeThrough | parameter | common | boolean | If write-through caching should be used | |||
bridgeErrorHandler | parameter | consumer | boolean | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN/ERROR level and ignored. | |||
filteredEvents | parameter | consumer | java.util.List |
CREATED UPDATED REMOVED EXPIRED |
Events a consumer should filter. If using filteredEvents option, then eventFilters one will be ignored | ||
oldValueRequired | parameter | consumer | boolean | if the old value is required for events | |||
synchronous | parameter | consumer | boolean | if the the event listener should block the thread causing the event | |||
eventFilters | parameter | consumer (advanced) | java.util.List |
The CacheEntryEventFilter. If using eventFilters option, then filteredEvents one will be ignored | |||
exceptionHandler | parameter | consumer (advanced) | org.apache.camel.spi.ExceptionHandler | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions, that will be logged at WARN/ERROR level and ignored. | |||
exchangePattern | parameter | consumer (advanced) | org.apache.camel.ExchangePattern | InOnly RobustInOnly InOut InOptionalOut OutOnly RobustOutOnly OutIn OutOptionalIn |
Sets the exchange pattern when the consumer creates an exchange. | ||
action | parameter | producer | java.lang.String | To configure using a cache operation by default. If an operation in the message header, then the operation from the header takes precedence. | |||
cacheConfiguration | parameter | advanced | javax.cache.configuration.Configuration | A {@link Configuration} for the {@link Cache} | |||
cacheConfigurationProperties | parameter | advanced | java.util.Properties | The {@link Properties} for the {@link javax.cache.spi.CachingProvider} to create the {@link CacheManager} | |||
cacheLoaderFactory | parameter | advanced | javax.cache.configuration.Factory |
The {@link CacheLoader} factory | |||
cacheWriterFactory | parameter | advanced | javax.cache.configuration.Factory |
The {@link CacheWriter} factory | |||
cachingProvider | parameter | advanced | true | java.lang.String | The fully qualified class name of the {@link javax.cache.spi.CachingProvider} | ||
configurationUri | parameter | advanced | java.lang.String | An implementation specific URI for the {@link CacheManager} | |||
createCacheIfNotExists | parameter | advanced | true | boolean | Configure if a cache need to be created if it does exist or can't be pre-configured. | ||
expiryPolicyFactory | parameter | advanced | javax.cache.configuration.Factory |
The {@link ExpiryPolicy} factory | |||
lookupProviders | parameter | advanced | boolean | Configure if a camel-cache should try to find implementations of jcache api in runtimes like OSGi. |
The JCache consumer.