Interface InfinispanComponentBuilderFactory.InfinispanComponentBuilder
-
- All Superinterfaces:
ComponentBuilder<org.apache.camel.component.infinispan.remote.InfinispanRemoteComponent>
- All Known Implementing Classes:
InfinispanComponentBuilderFactory.InfinispanComponentBuilderImpl
- Enclosing interface:
- InfinispanComponentBuilderFactory
public static interface InfinispanComponentBuilderFactory.InfinispanComponentBuilder extends ComponentBuilder<org.apache.camel.component.infinispan.remote.InfinispanRemoteComponent>
Builder for the Infinispan component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
autowiredEnabled(boolean autowiredEnabled)
Whether autowiring is enabled.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
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.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
cacheContainer(org.infinispan.client.hotrod.RemoteCacheManager cacheContainer)
Specifies the cache Container to connect.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
cacheContainerConfiguration(org.infinispan.client.hotrod.configuration.Configuration cacheContainerConfiguration)
The CacheContainer configuration.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
configuration(org.apache.camel.component.infinispan.remote.InfinispanRemoteConfiguration configuration)
Component configuration.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
configurationProperties(Map<String,String> configurationProperties)
Implementation specific properties for the CacheManager.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
configurationUri(String configurationUri)
An implementation specific URI for the CacheManager.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
customListener(org.apache.camel.component.infinispan.remote.InfinispanRemoteCustomListener customListener)
Returns the custom listener in use, if provided.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
defaultValue(Object defaultValue)
Set a specific default value for some producer operations.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
eventTypes(String eventTypes)
Specifies the set of event types to register by the consumer.Multiple event can be separated by comma.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
flags(String flags)
A comma separated list of org.infinispan.client.hotrod.Flag to be applied by default on each cache invocation.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
hosts(String hosts)
Specifies the host of the cache on Infinispan instance.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
key(Object key)
Set a specific key for producer operations.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message).default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
oldValue(Object oldValue)
Set a specific old value for some producer operations.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
operation(org.apache.camel.component.infinispan.InfinispanOperation operation)
The operation to perform.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
password(String password)
Define the password to access the infinispan instance.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
queryBuilder(org.apache.camel.component.infinispan.InfinispanQueryBuilder queryBuilder)
Specifies the query builder.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
remappingFunction(BiFunction remappingFunction)
Set a specific remappingFunction to use in a compute operation.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
resultHeader(String resultHeader)
Store the operation result in a header instead of the message body.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
saslMechanism(String saslMechanism)
Define the SASL Mechanism to access the infinispan instance.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
secure(boolean secure)
Define if we are connecting to a secured Infinispan instance.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
securityRealm(String securityRealm)
Define the security realm to access the infinispan instance.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
securityServerName(String securityServerName)
Define the security server name to access the infinispan instance.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
username(String username)
Define the username to access the infinispan instance.default InfinispanComponentBuilderFactory.InfinispanComponentBuilder
value(Object value)
Set a specific value for producer operations.-
Methods inherited from interface org.apache.camel.builder.component.ComponentBuilder
build, build, doSetProperty, register
-
-
-
-
Method Detail
-
configuration
default InfinispanComponentBuilderFactory.InfinispanComponentBuilder configuration(org.apache.camel.component.infinispan.remote.InfinispanRemoteConfiguration configuration)
Component configuration. The option is a: <code>org.apache.camel.component.infinispan.remote.InfinispanRemoteConfiguration</code> type. Group: common- Parameters:
configuration
- the value to set- Returns:
- the dsl builder
-
hosts
default InfinispanComponentBuilderFactory.InfinispanComponentBuilder hosts(String hosts)
Specifies the host of the cache on Infinispan instance. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
hosts
- the value to set- Returns:
- the dsl builder
-
queryBuilder
default InfinispanComponentBuilderFactory.InfinispanComponentBuilder 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
-
secure
default InfinispanComponentBuilderFactory.InfinispanComponentBuilder secure(boolean secure)
Define if we are connecting to a secured Infinispan instance. The option is a: <code>boolean</code> type. Default: false Group: common- Parameters:
secure
- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default InfinispanComponentBuilderFactory.InfinispanComponentBuilder 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
-
customListener
default InfinispanComponentBuilderFactory.InfinispanComponentBuilder customListener(org.apache.camel.component.infinispan.remote.InfinispanRemoteCustomListener customListener)
Returns the custom listener in use, if provided. The option is a: <code>org.apache.camel.component.infinispan.remote.InfinispanRemoteCustomListener</code> type. Group: consumer- Parameters:
customListener
- the value to set- Returns:
- the dsl builder
-
eventTypes
default InfinispanComponentBuilderFactory.InfinispanComponentBuilder 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: CLIENT_CACHE_ENTRY_CREATED, CLIENT_CACHE_ENTRY_MODIFIED, CLIENT_CACHE_ENTRY_REMOVED, CLIENT_CACHE_ENTRY_EXPIRED, CLIENT_CACHE_FAILOVER. The option is a: <code>java.lang.String</code> type. Group: consumer- Parameters:
eventTypes
- the value to set- Returns:
- the dsl builder
-
defaultValue
default InfinispanComponentBuilderFactory.InfinispanComponentBuilder 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 InfinispanComponentBuilderFactory.InfinispanComponentBuilder 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 InfinispanComponentBuilderFactory.InfinispanComponentBuilder 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 InfinispanComponentBuilderFactory.InfinispanComponentBuilder 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 InfinispanComponentBuilderFactory.InfinispanComponentBuilder 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 InfinispanComponentBuilderFactory.InfinispanComponentBuilder 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 InfinispanComponentBuilderFactory.InfinispanComponentBuilder 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 InfinispanComponentBuilderFactory.InfinispanComponentBuilder cacheContainer(org.infinispan.client.hotrod.RemoteCacheManager cacheContainer)
Specifies the cache Container to connect. The option is a: <code>org.infinispan.client.hotrod.RemoteCacheManager</code> type. Group: advanced- Parameters:
cacheContainer
- the value to set- Returns:
- the dsl builder
-
cacheContainerConfiguration
default InfinispanComponentBuilderFactory.InfinispanComponentBuilder cacheContainerConfiguration(org.infinispan.client.hotrod.configuration.Configuration cacheContainerConfiguration)
The CacheContainer configuration. Used if the cacheContainer is not defined. The option is a: <code>org.infinispan.client.hotrod.configuration.Configuration</code> type. Group: advanced- Parameters:
cacheContainerConfiguration
- the value to set- Returns:
- the dsl builder
-
configurationProperties
default InfinispanComponentBuilderFactory.InfinispanComponentBuilder configurationProperties(Map<String,String> configurationProperties)
Implementation specific properties for the CacheManager. The option is a: <code>java.util.Map<java.lang.String, java.lang.String></code> type. Group: advanced- Parameters:
configurationProperties
- the value to set- Returns:
- the dsl builder
-
configurationUri
default InfinispanComponentBuilderFactory.InfinispanComponentBuilder 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 InfinispanComponentBuilderFactory.InfinispanComponentBuilder flags(String flags)
A comma separated list of org.infinispan.client.hotrod.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 InfinispanComponentBuilderFactory.InfinispanComponentBuilder 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 InfinispanComponentBuilderFactory.InfinispanComponentBuilder 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
-
password
default InfinispanComponentBuilderFactory.InfinispanComponentBuilder password(String password)
Define the password to access the infinispan instance. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
password
- the value to set- Returns:
- the dsl builder
-
saslMechanism
default InfinispanComponentBuilderFactory.InfinispanComponentBuilder saslMechanism(String saslMechanism)
Define the SASL Mechanism to access the infinispan instance. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
saslMechanism
- the value to set- Returns:
- the dsl builder
-
securityRealm
default InfinispanComponentBuilderFactory.InfinispanComponentBuilder securityRealm(String securityRealm)
Define the security realm to access the infinispan instance. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
securityRealm
- the value to set- Returns:
- the dsl builder
-
securityServerName
default InfinispanComponentBuilderFactory.InfinispanComponentBuilder securityServerName(String securityServerName)
Define the security server name to access the infinispan instance. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
securityServerName
- the value to set- Returns:
- the dsl builder
-
username
default InfinispanComponentBuilderFactory.InfinispanComponentBuilder username(String username)
Define the username to access the infinispan instance. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
username
- the value to set- Returns:
- the dsl builder
-
-