이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 42. Infinispan Embedded
Since Camel 2.13
Both producer and consumer are supported
This component allows you to interact with Infinispan distributed data grid / cache. Infinispan is an extremely scalable, highly available key / value data store and data grid platform written in Java.
The camel-infinispan-embedded component includes the following features.
- Local Camel Consumer - Receives cache change notifications and sends them to be processed. This can be done synchronously or asynchronously, and is also supported with a replicated or distributed cache.
-
Local Camel Producer - A producer creates and sends messages to an endpoint. The
camel-infinispanproducer usesGET,PUT,REMOVE, andCLEARoperations. The local producer is also supported with a replicated or distributed cache.
The events are processed asynchronously.
42.1. Dependencies 링크 복사링크가 클립보드에 복사되었습니다!
When using infinispan-embedded with Red Hat build of Camel Spring Boot make sure to use the following Maven dependency to have support for auto configuration:
42.2. URI format 링크 복사링크가 클립보드에 복사되었습니다!
infinispan-embedded://cacheName?[options]
infinispan-embedded://cacheName?[options]
The producer allows sending messages to a local infinispan cache. The consumer allows listening for events from local infinispan cache.
If no cache configuration is provided, embedded cacheContainer is created directly in the component.
42.3. Configuring Options 링크 복사링크가 클립보드에 복사되었습니다!
Camel components are configured on two separate levels.
- component level
- endpoint level
42.3.1. Configuring Component Options 링크 복사링크가 클립보드에 복사되었습니다!
The component level is the highest level which holds general and common configurations that are inherited by the endpoints. For example a component may have security settings, credentials for authentication, urls for network connection and more.
Because components typically have pre configured defaults that are commonly used, then you may often only need to configure a few options on a component; or none at all.
Configuring components can be done with the Component DSL, in a configuration file (application.properties|yaml), or directly with Java code.
42.3.2. Configuring Endpoint Options 링크 복사링크가 클립보드에 복사되었습니다!
Endpoints have many options, which allows you to configure what you need the endpoint to do. The options are also categorized into whether the endpoint is used as consumer (from) or as a producer (to), or used for both.
Configuring endpoints is done directly in the endpoint URI as path and query parameters. You can also use the Endpoint DSL and DataFormat DSL as a type safe way of configuring endpoints and data formats in Java.
Use Property Placeholders to configure options that allows to not hardcode urls, port numbers, sensitive information, and other settings. In other words placeholders allows to externalize the configuration from your code, and gives more flexibility and reuse.
The following two sections lists all the options, firstly for the component followed by the endpoint.
42.4. Component Options 링크 복사링크가 클립보드에 복사되었습니다!
The Infinispan Embedded component supports 20 options that are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
| configuration (common) | Component configuration. | InfinispanEmbeddedConfiguration | |
| queryBuilder (common) | Specifies the query builder. | InfinispanQueryBuilder | |
| 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 or ERROR level and ignored. | false | boolean |
| clusteredListener (consumer) | If true, the listener will be installed for the entire cluster. | false | boolean |
| customListener (consumer) | Returns the custom listener in use, if provided. | InfinispanEmbeddedCustomListener | |
| eventTypes (consumer) | Specifies the set of event types to register by the consumer.Multiple event can be separated by comma. The possible event types are: CACHE_ENTRY_ACTIVATED, CACHE_ENTRY_PASSIVATED, CACHE_ENTRY_VISITED, CACHE_ENTRY_LOADED, CACHE_ENTRY_EVICTED, CACHE_ENTRY_CREATED, CACHE_ENTRY_REMOVED, CACHE_ENTRY_MODIFIED, TRANSACTION_COMPLETED, TRANSACTION_REGISTERED, CACHE_ENTRY_INVALIDATED, CACHE_ENTRY_EXPIRED, DATA_REHASHED, TOPOLOGY_CHANGED, PARTITION_STATUS_CHANGED, PERSISTENCE_AVAILABILITY_CHANGED. | String | |
| sync (consumer) | If true, the consumer will receive notifications synchronously. | true | boolean |
| defaultValue (producer) | Set a specific default value for some producer operations. | Object | |
| key (producer) | Set a specific key for producer operations. | Object | |
| lazyStartProducer (producer) | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | boolean |
| oldValue (producer) | Set a specific old value for some producer operations. | Object | |
| operation (producer) | The operation to perform. Enum values: * PUT * PUTASYNC * PUTALL * PUTALLASYNC * PUTIFABSENT * PUTIFABSENTASYNC * GET * GETORDEFAULT * CONTAINSKEY * CONTAINSVALUE * REMOVE * REMOVEASYNC * REPLACE * REPLACEASYNC * SIZE * CLEAR * CLEARASYNC * QUERY * STATS * COMPUTE * COMPUTEASYNC | PUT | InfinispanOperation |
| value* (producer) | Set a specific value for producer operations. | Object | |
| autowiredEnabled (advanced) | Whether auto-wiring is enabled. This is used for automatic auto-wiring options (the option must be marked as auto-wired) 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 | boolean |
| cacheContainer (advanced) | Autowired Specifies the cache Container to connect. | EmbeddedCacheManager | |
| cacheContainerConfiguration (advanced) | Autowired The CacheContainer configuration. Used if the cacheContainer is not defined. | Configuration | |
| configurationUri (advanced) | An implementation specific URI for the CacheManager. | String | |
| flags (advanced) | A comma separated list of org.infinispan.context.Flag to be applied by default on each cache invocation. | String | |
| remappingFunction (advanced) | Set a specific remappingFunction to use in a compute operation. | BiFunction | |
| resultHeader (advanced) | Store the operation result in a header instead of the message body. By default, resultHeader == null and the query result is stored in the message body, any existing content in the message body is discarded. If resultHeader is set, the value is used as the name of the header to store the query result and the original message body is preserved. This value can be overridden by an in message header named: CamelInfinispanOperationResultHeader. | String |
42.5. Endpoint Options 링크 복사링크가 클립보드에 복사되었습니다!
The Infinispan Embedded endpoint is configured using URI syntax.
infinispan-embedded:cacheName
infinispan-embedded:cacheName
Following are the path and query parameters.
42.5.1. Path Parameters (1 parameters) 링크 복사링크가 클립보드에 복사되었습니다!
| Name | Description | Default | Type |
|---|---|---|---|
| cacheName (common) | Required The name of the cache to use. Use current to use the existing cache name from the currently configured cached manager. Or use default for the default cache manager name. | String |
42.5.2. Query Parameters (20 parameters) 링크 복사링크가 클립보드에 복사되었습니다!
| Name | Description | Default | Type |
|---|---|---|---|
| queryBuilder (common) | Specifies the query builder. | InfinispanQueryBuilder | |
| clusteredListener (consumer) | If true, the listener will be installed for the entire cluster. | false | boolean |
| customListener (consumer) | Returns the custom listener in use, if provided. | InfinispanEmbeddedCustomListener | |
| eventTypes (consumer) | Specifies the set of event types to register by the consumer.Multiple event can be separated by comma. The possible event types are: CACHE_ENTRY_ACTIVATED, CACHE_ENTRY_PASSIVATED, CACHE_ENTRY_VISITED, CACHE_ENTRY_LOADED, CACHE_ENTRY_EVICTED, CACHE_ENTRY_CREATED, CACHE_ENTRY_REMOVED, CACHE_ENTRY_MODIFIED, TRANSACTION_COMPLETED, TRANSACTION_REGISTERED, CACHE_ENTRY_INVALIDATED, CACHE_ENTRY_EXPIRED, DATA_REHASHED, TOPOLOGY_CHANGED, PARTITION_STATUS_CHANGED, PERSISTENCE_AVAILABILITY_CHANGED. | String | |
| sync (consumer) | If true, the consumer will receive notifications synchronously. | true | boolean |
| bridgeErrorHandler (consumer (advanced)) | 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 | boolean |
| exceptionHandler (consumer (advanced)) | 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. | ExceptionHandler | |
| exchangePattern (consumer (advanced)) | Sets the exchange pattern when the consumer creates an exchange. Enum values: * InOnly * InOut * InOptionalOut | ExchangePattern | |
| defaultValue (producer) | Set a specific default value for some producer operations. | Object | |
| key (producer) | Set a specific key for producer operations. | Object | |
| oldValue (producer) | Set a specific old value for some producer operations. | Object | |
| operation (producer) | The operation to perform. Enum values: * PUT * PUTASYNC * PUTALL * PUTALLASYNC * PUTIFABSENT * PUTIFABSENTASYNC * GET * GETORDEFAULT * CONTAINSKEY * CONTAINSVALUE * REMOVE * REMOVEASYNC * REPLACE * REPLACEASYNC * SIZE * CLEAR * CLEARASYNC * QUERY * STATS * COMPUTE * COMPUTEASYNC | PUT | InfinispanOperation |
| value (producer) | Set a specific value for producer operations. | Object | |
| lazyStartProducer (producer (advanced)) | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | boolean |
| cacheContainer (advanced) | Autowired Specifies the cache Container to connect. | EmbeddedCacheManager | |
| cacheContainerConfiguration (advanced) | Autowired The CacheContainer configuration. Used if the cacheContainer is not defined. | Configuration | |
| configurationUri (advanced) | An implementation specific URI for the CacheManager. | String | |
| flags (advanced) | A comma separated list of org.infinispan.context.Flag to be applied by default on each cache invocation. | String | |
| remappingFunction (advanced) | Set a specific remappingFunction to use in a compute operation. | BiFunction | |
| resultHeader (advanced) | Store the operation result in a header instead of the message body. By default, resultHeader == null and the query result is stored in the message body, any existing content in the message body is discarded. If resultHeader is set, the value is used as the name of the header to store the query result and the original message body is preserved. This value can be overridden by an in message header named: CamelInfinispanOperationResultHeader. | String |
42.6. Message Headers 링크 복사링크가 클립보드에 복사되었습니다!
The Infinispan Embedded component supports 22 message headers that are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
| CamelInfinispanEventType (consumer)
Constant: | The type of the received event. | String | |
| CamelInfinispanIsPre (consumer)
Constant: | true if the notification is before the event has occurred, false if after the event has occurred. | boolean | |
| CamelInfinispanCacheName (common)
Constant: | The cache participating in the operation or event. | String | |
| CamelInfinispanKey (common)
Constant: | The key to perform the operation to or the key generating the event. | Object | |
| CamelInfinispanValue (producer)
Constant: | The value to use for the operation. | Object | |
| CamelInfinispanDefaultValue (producer)
Constant: | The default value to use for a getOrDefault. | Object | |
| CamelInfinispanOldValue (producer)
Constant: | The old value to use for a replace. | Object | |
| CamelInfinispanMap (producer)
Constant: | A Map to use in case of CamelInfinispanOperationPutAll operation. | Map | |
| CamelInfinispanOperation (producer)
Constant: | The operation to perform. Enum values: * PUT * PUTASYNC * PUTALL * PUTALLASYNC * PUTIFABSENT * PUTIFABSENTASYNC * GET * GETORDEFAULT * CONTAINSKEY * CONTAINSVALUE * REMOVE * REMOVEASYNC * REPLACE * REPLACEASYNC * SIZE * CLEAR * CLEARASYNC * QUERY * STATS * COMPUTE * COMPUTEASYNC | InfinispanOperation | |
| CamelInfinispanOperationResult (producer)
Constant: | The name of the header whose value is the result. | String | |
| CamelInfinispanOperationResultHeader (producer)
Constant: | Store the operation result in a header instead of the message body. | String | |
| CamelInfinispanLifespanTime (producer)
Constant: | The Lifespan time of a value inside the cache. Negative values are interpreted as infinity. | long | |
| CamelInfinispanTimeUnit (producer)
Constant: | The Time Unit of an entry Lifespan Time. Enum values: * NANOSECONDS * MICROSECONDS * MILLISECONDS * SECONDS * MINUTES * HOURS * DAYS | TimeUnit | |
| CamelInfinispanMaxIdleTime (producer)
Constant: | The maximum amount of time an entry is allowed to be idle for before it is considered as expired. | long | |
| CamelInfinispanMaxIdleTimeUnit (producer)
Constant: | The Time Unit of an entry Max Idle Time. Enum values: * NANOSECONDS * MICROSECONDS * MILLISECONDS * SECONDS * MINUTES * HOURS * DAYS | TimeUnit | |
| CamelInfinispanIgnoreReturnValues (consumer)
Constant: | Signals that write operation’s return value are ignored, so reading the existing value from a store or from a remote node is not necessary. | false | boolean |
| CamelInfinispanEventData (consumer)
Constant: | The event data. | Object | |
| CamelInfinispanQueryBuilder (producer)
Constant: | The QueryBuilder to use for QUERY command, if not present the command defaults to InifinispanConfiguration’s one. | InfinispanQueryBuilder | |
| CamelInfinispanCommandRetried (consumer)
Constant: | This will be true if the write command that caused this had to be retried again due to a topology change. | boolean | |
| CamelInfinispanEntryCreated (consumer)
Constant: | Indicates whether the cache entry modification event is the result of the cache entry being created. | boolean | |
| CamelInfinispanOriginLocal (consumer)
Constant: | true if the call originated on the local cache instance; false if originated from a remote one. | boolean | |
| CamelInfinispanCurrentState (consumer)
Constant: | True if this event is generated from an existing entry as the listener has Listener. | boolean |
42.7. Camel Operations 링크 복사링크가 클립보드에 복사되었습니다!
This section lists all available operations along with their header information.
| Operation Name | Description |
|---|---|
| InfinispanOperation.PUT | Puts a key/value pair in the cache, optionally with expiration |
| InfinispanOperation.PUTASYNC | Asynchronously puts a key/value pair in the cache, optionally with expiration |
| InfinispanOperation.PUTIFABSENT | Puts a key/value pair in the cache if it did not exist, optionally with expiration |
| InfinispanOperation.PUTIFABSENTASYNC | Asynchronously puts a key/value pair in the cache if it did not exist, optionally with expiration |
Required Headers:
- CamelInfinispanKey
- CamelInfinispanValue
Optional Headers:
- CamelInfinispanLifespanTime
- CamelInfinispanLifespanTimeUnit
- CamelInfinispanMaxIdleTime
- CamelInfinispanMaxIdleTimeUnit
Result Header:
- CamelInfinispanOperationResult
| Operation Name | Description |
|---|---|
| InfinispanOperation.PUTALL | Adds multiple entries to a cache, optionally with expiration |
| CamelInfinispanOperation.PUTALLASYNC | Asynchronously adds multiple entries to a cache, optionally with expiration |
Required Headers:
- CamelInfinispanMap
Optional Headers:
- CamelInfinispanLifespanTime
- CamelInfinispanLifespanTimeUnit
- CamelInfinispanMaxIdleTime
- CamelInfinispanMaxIdleTimeUnit
| Operation Name | Description |
|---|---|
| InfinispanOperation.GET | Retrieves the value associated with a specific key from the cache |
| InfinispanOperation.GETORDEFAULT | Retrieves the value, or default value, associated with a specific key from the cache |
Required Headers:
- CamelInfinispanKey
| Operation Name | Description |
|---|---|
| InfinispanOperation.CONTAINSKEY | Determines whether a cache contains a specific key |
Required Headers
- CamelInfinispanKey
Result Header
- CamelInfinispanOperationResult
| Operation Name | Description |
|---|---|
| InfinispanOperation.CONTAINSVALUE | Determines whether a cache contains a specific value |
Required Headers:
- CamelInfinispanKey
| Operation Name | Description |
|---|---|
| InfinispanOperation.REMOVE | Removes an entry from a cache, optionally only if the value matches a given one |
| InfinispanOperation.REMOVEASYNC | Asynchronously removes an entry from a cache, optionally only if the value matches a given one |
Required Headers:
- CamelInfinispanKey
Optional Headers:
- CamelInfinispanValue
Result Header:
- CamelInfinispanOperationResult
| Operation Name | Description |
|---|---|
| InfinispanOperation.REPLACE | Conditionally replaces an entry in the cache, optionally with expiration |
| InfinispanOperation.REPLACEASYNC | Asynchronously conditionally replaces an entry in the cache, optionally with expiration |
Required Headers:
- CamelInfinispanKey
- CamelInfinispanValue
- CamelInfinispanOldValue
Optional Headers:
- CamelInfinispanLifespanTime
- CamelInfinispanLifespanTimeUnit
- CamelInfinispanMaxIdleTime
- CamelInfinispanMaxIdleTimeUnit
Result Header:
- CamelInfinispanOperationResult
| Operation Name | Description |
|---|---|
| InfinispanOperation.CLEAR | Clears the cache |
| InfinispanOperation.CLEARASYNC | Asynchronously clears the cache |
| Operation Name | Description |
|---|---|
| InfinispanOperation.SIZE | Returns the number of entries in the cache |
Result Header
- CamelInfinispanOperationResult
| Operation Name | Description |
|---|---|
| InfinispanOperation.STATS | Returns statistics about the cache |
Result Header:
- CamelInfinispanOperationResult
| Operation Name | Description |
|---|---|
| InfinispanOperation.QUERY | Executes a query on the cache |
Required Headers:
- CamelInfinispanQueryBuilder
Result Header:
- CamelInfinispanOperationResult
Write methods like put(key, value) and remove(key) do not return the previous value by default.
42.8. Examples 링크 복사링크가 클립보드에 복사되었습니다!
Put a key/value into a named cache:
from("direct:start") .setHeader(InfinispanConstants.OPERATION).constant(InfinispanOperation.PUT) (1) .setHeader(InfinispanConstants.KEY).constant("123") (2) .to("infinispan:myCacheName&cacheContainer=#cacheContainer"); (3)from("direct:start") .setHeader(InfinispanConstants.OPERATION).constant(InfinispanOperation.PUT) (1) .setHeader(InfinispanConstants.KEY).constant("123") (2) .to("infinispan:myCacheName&cacheContainer=#cacheContainer"); (3)Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Set the operation to perform
- Set the key used to identify the element in the cache
Use the configured cache manager
cacheContainerfrom the registry to put an element to the cache namedmyCacheNameIt is possible to configure the lifetime and/or the idle time before the entry expires and gets evicted from the cache, as example.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Set the lifespan of the entry
- Set the time unit for the lifespan
Queries
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Custom Listeners
from("infinispan://?cacheContainer=#cacheManager&customListener=#myCustomListener") .to("mock:result");from("infinispan://?cacheContainer=#cacheManager&customListener=#myCustomListener") .to("mock:result");Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
The instance of
myCustomListenermust exist and Camel should be able to look it up from theRegistry. Users are encouraged to extend theorg.apache.camel.component.infinispan.embedded.InfinispanEmbeddedCustomListenerclass and annotate the resulting class with@Listenerwhich can be found in packageorg.infinispan.notifications.
-
The instance of
42.9. Using the Infinispan based idempotent repository 링크 복사링크가 클립보드에 복사되었습니다!
Java Example
- Configure the cache
- Configure the repository bean
- Set the repository to the route
XML Example
- Set the name of the cache that will be used by the repository
- Configure the repository bean
- Set the repository to the route
42.10. Using the Infinispan based aggregation repository 링크 복사링크가 클립보드에 복사되었습니다!
Java Example
- Configure the cache
- Create the repository bean
- Set the repository to the route
XML Example
- Set the name of the cache that will be used by the repository
- Configure the repository bean
- Set the repository to the route
With the release of Infinispan 11, it is required to set the encoding configuration on any cache created. This is critical for consuming events too. For more information have a look at Data Encoding and MediaTypes in the official Infinispan documentation.
42.11. Spring Boot Auto-Configuration 링크 복사링크가 클립보드에 복사되었습니다!
The component supports 17 options that are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
| camel.component.infinispan-embedded.autowired-enabled | 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 | Boolean |
| camel.component.infinispan-embedded.bridge-error-handler | 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 | Boolean |
| camel.component.infinispan-embedded.cache-container | Specifies the cache Container to connect. The option is a org.infinispan.manager.EmbeddedCacheManager type. | EmbeddedCacheManager | |
| camel.component.infinispan-embedded.cache-container-configuration | The CacheContainer configuration. Used if the cacheContainer is not defined. The option is a org.infinispan.configuration.cache.Configuration type. | Configuration | |
| camel.component.infinispan-embedded.clustered-listener | If true, the listener will be installed for the entire cluster. | false | Boolean |
| camel.component.infinispan-embedded.configuration | Component configuration. The option is a org.apache.camel.component.infinispan.embedded.InfinispanEmbeddedConfiguration type. | InfinispanEmbeddedConfiguration | |
| camel.component.infinispan-embedded.configuration-uri | An implementation specific URI for the CacheManager. | String | |
| camel.component.infinispan-embedded.custom-listener | Returns the custom listener in use, if provided. The option is a org.apache.camel.component.infinispan.embedded.InfinispanEmbeddedCustomListener type. | InfinispanEmbeddedCustomListener | |
| camel.component.infinispan-embedded.enabled | Whether to enable auto configuration of the infinispan-embedded component. This is enabled by default. | Boolean | |
| camel.component.infinispan-embedded.event-types | Specifies the set of event types to register by the consumer.Multiple event can be separated by comma. The possible event types are: CACHE_ENTRY_ACTIVATED, CACHE_ENTRY_PASSIVATED, CACHE_ENTRY_VISITED, CACHE_ENTRY_LOADED, CACHE_ENTRY_EVICTED, CACHE_ENTRY_CREATED, CACHE_ENTRY_REMOVED, CACHE_ENTRY_MODIFIED, TRANSACTION_COMPLETED, TRANSACTION_REGISTERED, CACHE_ENTRY_INVALIDATED, CACHE_ENTRY_EXPIRED, DATA_REHASHED, TOPOLOGY_CHANGED, PARTITION_STATUS_CHANGED, PERSISTENCE_AVAILABILITY_CHANGED. | String | |
| camel.component.infinispan-embedded.flags | A comma separated list of org.infinispan.context.Flag to be applied by default on each cache invocation. | String | |
| camel.component.infinispan-embedded.lazy-start-producer | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | Boolean |
| camel.component.infinispan-embedded.operation | The operation to perform. | InfinispanOperation | |
| camel.component.infinispan-embedded.query-builder | Specifies the query builder. The option is a org.apache.camel.component.infinispan.InfinispanQueryBuilder type. | InfinispanQueryBuilder | |
| camel.component.infinispan-embedded.remapping-function | Set a specific remappingFunction to use in a compute operation. The option is a java.util.function.BiFunction type. | BiFunction | |
| camel.component.infinispan-embedded.result-header | Store the operation result in a header instead of the message body. By default, resultHeader == null and the query result is stored in the message body, any existing content in the message body is discarded. If resultHeader is set, the value is used as the name of the header to store the query result and the original message body is preserved. This value can be overridden by an in message header named: CamelInfinispanOperationResultHeader. | String | |
| camel.component.infinispan-embedded.sync | If true, the consumer will receive notifications synchronously. | true | Boolean |