The JCache component supports 23 endpoint options which are listed below:
{% raw %}
| Name | Group | Default | Java Type | Description |
|---|---|---|---|---|
cacheName | common |
| Required the cache name | |
managementEnabled | common |
|
| Whether management gathering is enabled |
readThrough | common |
|
| If read-through caching should be used |
statisticsEnabled | common |
|
| Whether statistics gathering is enabled |
storeByValue | common |
|
| If cache should use store-by-value or store-by-reference semantics |
writeThrough | common |
|
| If write-through caching should be used |
bridgeErrorHandler | consumer |
|
| 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 | consumer |
| Events a consumer should filter. If using filteredEvents option then eventFilters one will be ignored | |
oldValueRequired | consumer |
|
| if the old value is required for events |
synchronous | consumer |
|
| if the the event listener should block the thread causing the event |
eventFilters | consumer (advanced) |
| The CacheEntryEventFilter. If using eventFilters option then filteredEvents one will be ignored | |
exceptionHandler | consumer (advanced) |
| 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 | consumer (advanced) |
| Sets the exchange pattern when the consumer creates an exchange. | |
action | producer |
| To configure using a cache operation by default. If an operation in the message header then the operation from the header takes precedence. | |
cacheConfiguration | advanced |
| A Configuration for the Cache | |
cacheConfigurationProperties | advanced |
| The Properties for the javax.cache.spi.CachingProvider to create the CacheManager | |
cacheLoaderFactory | advanced |
| The CacheLoader factory | |
cacheWriterFactory | advanced |
| The CacheWriter factory | |
cachingProvider | advanced |
| Required The fully qualified class name of the javax.cache.spi.CachingProvider | |
configurationUri | advanced |
| An implementation specific URI for the CacheManager | |
createCacheIfNotExists | advanced |
|
| Configure if a cache need to be created if it does exist or can’t be pre-configured. |
expiryPolicyFactory | advanced |
| The ExpiryPolicy factory | |
lookupProviders | advanced |
|
| Configure if a camel-cache should try to find implementations of jcache api in runtimes like OSGi. |
{% endraw %}
The JCache component has no options.