camel-jcache-kafka-connector source configuration

Connector Description: Perform caching operations against JSR107/JCache.

When using camel-jcache-kafka-connector as source make sure to use the following Maven dependency to have support for the connector:

<dependency>
  <groupId>org.apache.camel.kafkaconnector</groupId>
  <artifactId>camel-jcache-kafka-connector</artifactId>
  <version>x.x.x</version>
  <!-- use the same version as your Camel Kafka connector version -->
</dependency>

To use this source connector in Kafka connect you’ll need to set the following connector.class

connector.class=org.apache.camel.kafkaconnector.jcache.CamelJcacheSourceConnector

The camel-jcache source connector supports 29 options, which are listed below.

Name Description Default Priority

camel.source.path.cacheName

Required The name of the cache.

HIGH

camel.source.endpoint.cacheConfiguration

A Configuration for the Cache.

MEDIUM

camel.source.endpoint.cacheConfigurationProperties

The Properties for the javax.cache.spi.CachingProvider to create the CacheManager.

MEDIUM

camel.source.endpoint.cachingProvider

The fully qualified class name of the javax.cache.spi.CachingProvider.

MEDIUM

camel.source.endpoint.configurationUri

An implementation specific URI for the CacheManager.

MEDIUM

camel.source.endpoint.managementEnabled

Whether management gathering is enabled.

false

MEDIUM

camel.source.endpoint.readThrough

If read-through caching should be used.

false

MEDIUM

camel.source.endpoint.statisticsEnabled

Whether statistics gathering is enabled.

false

MEDIUM

camel.source.endpoint.storeByValue

If cache should use store-by-value or store-by-reference semantics.

true

MEDIUM

camel.source.endpoint.writeThrough

If write-through caching should be used.

false

MEDIUM

camel.source.endpoint.bridgeErrorHandler

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 or ERROR level and ignored.

false

MEDIUM

camel.source.endpoint.filteredEvents

Events a consumer should filter (multiple events can be separated by comma). If using filteredEvents option, then eventFilters one will be ignored One of: [CREATED] [UPDATED] [REMOVED] [EXPIRED].

Enum values:

  • CREATED

  • UPDATED

  • REMOVED

  • EXPIRED

MEDIUM

camel.source.endpoint.oldValueRequired

if the old value is required for events.

false

MEDIUM

camel.source.endpoint.synchronous

if the event listener should block the thread causing the event.

false

MEDIUM

camel.source.endpoint.eventFilters

The CacheEntryEventFilter. If using eventFilters option, then filteredEvents one will be ignored.

MEDIUM

camel.source.endpoint.exceptionHandler

To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored.

MEDIUM

camel.source.endpoint.exchangePattern

Sets the exchange pattern when the consumer creates an exchange. One of: [InOnly] [InOut] [InOptionalOut].

Enum values:

  • InOnly

  • InOut

  • InOptionalOut

MEDIUM

camel.source.endpoint.cacheLoaderFactory

The CacheLoader factory.

MEDIUM

camel.source.endpoint.cacheWriterFactory

The CacheWriter factory.

MEDIUM

camel.source.endpoint.createCacheIfNotExists

Configure if a cache need to be created if it does exist or can’t be pre-configured.

true

MEDIUM

camel.source.endpoint.expiryPolicyFactory

The ExpiryPolicy factory.

MEDIUM

camel.source.endpoint.lookupProviders

Configure if a camel-cache should try to find implementations of jcache api in runtimes like OSGi.

false

MEDIUM

camel.component.jcache.cacheConfiguration

A Configuration for the Cache.

MEDIUM

camel.component.jcache.cacheConfigurationProperties

Properties to configure jcache.

MEDIUM

camel.component.jcache.cacheConfigurationPropertiesRef

References to an existing Properties or Map to lookup in the registry to use for configuring jcache.

MEDIUM

camel.component.jcache.cachingProvider

The fully qualified class name of the javax.cache.spi.CachingProvider.

MEDIUM

camel.component.jcache.configurationUri

An implementation specific URI for the CacheManager.

MEDIUM

camel.component.jcache.bridgeErrorHandler

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 or ERROR level and ignored.

false

MEDIUM

camel.component.jcache.autowiredEnabled

Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc.

true

MEDIUM

The camel-jcache source connector has no converters out of the box.

The camel-jcache source connector has no transforms out of the box.

The camel-jcache source connector has no aggregation strategies out of the box.