Interface InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder
- All Superinterfaces:
ComponentBuilder<org.apache.camel.component.infinispan.embedded.InfinispanEmbeddedComponent>
- All Known Implementing Classes:
InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilderImpl
- Enclosing interface:
- InfinispanEmbeddedComponentBuilderFactory
public static interface InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder
extends ComponentBuilder<org.apache.camel.component.infinispan.embedded.InfinispanEmbeddedComponent>
Builder for the Infinispan Embedded component.
-
Method Summary
Modifier and TypeMethodDescriptionautowiredEnabled
(boolean autowiredEnabled) Whether autowiring is enabled.bridgeErrorHandler
(boolean 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.cacheContainer
(org.infinispan.manager.EmbeddedCacheManager cacheContainer) Specifies the cache Container to connect.cacheContainerConfiguration
(org.infinispan.configuration.cache.Configuration cacheContainerConfiguration) The CacheContainer configuration.clusteredListener
(boolean clusteredListener) If true, the listener will be installed for the entire cluster.configuration
(org.apache.camel.component.infinispan.embedded.InfinispanEmbeddedConfiguration configuration) Component configuration.configurationUri
(String configurationUri) An implementation specific URI for the CacheManager.customListener
(org.apache.camel.component.infinispan.embedded.InfinispanEmbeddedCustomListener customListener) Returns the custom listener in use, if provided.defaultValue
(Object defaultValue) Set a specific default value for some producer operations.eventTypes
(String eventTypes) Specifies the set of event types to register by the consumer.Multiple event can be separated by comma.A comma separated list of org.infinispan.context.Flag to be applied by default on each cache invocation.Set a specific key for producer operations.lazyStartProducer
(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message).Set a specific old value for some producer operations.operation
(org.apache.camel.component.infinispan.InfinispanOperation operation) The operation to perform.queryBuilder
(org.apache.camel.component.infinispan.InfinispanQueryBuilder queryBuilder) Specifies the query builder.remappingFunction
(BiFunction remappingFunction) Set a specific remappingFunction to use in a compute operation.resultHeader
(String resultHeader) Store the operation result in a header instead of the message body.sync
(boolean sync) If true, the consumer will receive notifications synchronously.Set a specific value for producer operations.Methods inherited from interface org.apache.camel.builder.component.ComponentBuilder
build, build, doSetProperty, register
-
Method Details
-
configuration
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder configuration(org.apache.camel.component.infinispan.embedded.InfinispanEmbeddedConfiguration configuration) Component configuration. The option is a: <code>org.apache.camel.component.infinispan.embedded.InfinispanEmbeddedConfiguration</code> type. Group: common- Parameters:
configuration
- the value to set- Returns:
- the dsl builder
-
queryBuilder
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder queryBuilder(org.apache.camel.component.infinispan.InfinispanQueryBuilder queryBuilder) Specifies the query builder. The option is a: <code>org.apache.camel.component.infinispan.InfinispanQueryBuilder</code> type. Group: common- Parameters:
queryBuilder
- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder bridgeErrorHandler(boolean 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. The option is a: <code>boolean</code> type. Default: false Group: consumer- Parameters:
bridgeErrorHandler
- the value to set- Returns:
- the dsl builder
-
clusteredListener
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder clusteredListener(boolean clusteredListener) If true, the listener will be installed for the entire cluster. The option is a: <code>boolean</code> type. Default: false Group: consumer- Parameters:
clusteredListener
- the value to set- Returns:
- the dsl builder
-
customListener
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder customListener(org.apache.camel.component.infinispan.embedded.InfinispanEmbeddedCustomListener customListener) Returns the custom listener in use, if provided. The option is a: <code>org.apache.camel.component.infinispan.embedded.InfinispanEmbeddedCustomListener</code> type. Group: consumer- Parameters:
customListener
- the value to set- Returns:
- the dsl builder
-
eventTypes
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder eventTypes(String eventTypes) 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. The option is a: <code>java.lang.String</code> type. Group: consumer- Parameters:
eventTypes
- the value to set- Returns:
- the dsl builder
-
sync
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder sync(boolean sync) If true, the consumer will receive notifications synchronously. The option is a: <code>boolean</code> type. Default: true Group: consumer- Parameters:
sync
- the value to set- Returns:
- the dsl builder
-
defaultValue
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder defaultValue(Object defaultValue) Set a specific default value for some producer operations. The option is a: <code>java.lang.Object</code> type. Group: producer- Parameters:
defaultValue
- the value to set- Returns:
- the dsl builder
-
key
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder key(Object key) Set a specific key for producer operations. The option is a: <code>java.lang.Object</code> type. Group: producer- Parameters:
key
- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder lazyStartProducer(boolean lazyStartProducer) 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's 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. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
lazyStartProducer
- the value to set- Returns:
- the dsl builder
-
oldValue
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder oldValue(Object oldValue) Set a specific old value for some producer operations. The option is a: <code>java.lang.Object</code> type. Group: producer- Parameters:
oldValue
- the value to set- Returns:
- the dsl builder
-
operation
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder operation(org.apache.camel.component.infinispan.InfinispanOperation operation) The operation to perform. The option is a: <code>org.apache.camel.component.infinispan.InfinispanOperation</code> type. Default: PUT Group: producer- Parameters:
operation
- the value to set- Returns:
- the dsl builder
-
value
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder value(Object value) Set a specific value for producer operations. The option is a: <code>java.lang.Object</code> type. Group: producer- Parameters:
value
- the value to set- Returns:
- the dsl builder
-
autowiredEnabled
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder autowiredEnabled(boolean 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. The option is a: <code>boolean</code> type. Default: true Group: advanced- Parameters:
autowiredEnabled
- the value to set- Returns:
- the dsl builder
-
cacheContainer
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder cacheContainer(org.infinispan.manager.EmbeddedCacheManager cacheContainer) Specifies the cache Container to connect. The option is a: <code>org.infinispan.manager.EmbeddedCacheManager</code> type. Group: advanced- Parameters:
cacheContainer
- the value to set- Returns:
- the dsl builder
-
cacheContainerConfiguration
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder cacheContainerConfiguration(org.infinispan.configuration.cache.Configuration cacheContainerConfiguration) The CacheContainer configuration. Used if the cacheContainer is not defined. The option is a: <code>org.infinispan.configuration.cache.Configuration</code> type. Group: advanced- Parameters:
cacheContainerConfiguration
- the value to set- Returns:
- the dsl builder
-
configurationUri
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder configurationUri(String configurationUri) An implementation specific URI for the CacheManager. The option is a: <code>java.lang.String</code> type. Group: advanced- Parameters:
configurationUri
- the value to set- Returns:
- the dsl builder
-
flags
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder flags(String flags) A comma separated list of org.infinispan.context.Flag to be applied by default on each cache invocation. The option is a: <code>java.lang.String</code> type. Group: advanced- Parameters:
flags
- the value to set- Returns:
- the dsl builder
-
remappingFunction
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder remappingFunction(BiFunction remappingFunction) Set a specific remappingFunction to use in a compute operation. The option is a: <code>java.util.function.BiFunction</code> type. Group: advanced- Parameters:
remappingFunction
- the value to set- Returns:
- the dsl builder
-
resultHeader
default InfinispanEmbeddedComponentBuilderFactory.InfinispanEmbeddedComponentBuilder resultHeader(String resultHeader) 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. The option is a: <code>java.lang.String</code> type. Group: advanced- Parameters:
resultHeader
- the value to set- Returns:
- the dsl builder
-