Interface ElasticsearchRestClientComponentBuilderFactory.ElasticsearchRestClientComponentBuilder
- All Superinterfaces:
ComponentBuilder<org.apache.camel.component.elasticsearch.rest.client.ElasticsearchRestClientComponent>
- All Known Implementing Classes:
ElasticsearchRestClientComponentBuilderFactory.ElasticsearchRestClientComponentBuilderImpl
- Enclosing interface:
ElasticsearchRestClientComponentBuilderFactory
public static interface ElasticsearchRestClientComponentBuilderFactory.ElasticsearchRestClientComponentBuilder
extends ComponentBuilder<org.apache.camel.component.elasticsearch.rest.client.ElasticsearchRestClientComponent>
Builder for the Elasticsearch Low level Rest Client component.
-
Method Summary
Modifier and TypeMethodDescriptionautowiredEnabled
(boolean autowiredEnabled) Whether autowiring is enabled.certificatePath
(String certificatePath) Certificate Path.connectionTimeout
(int connectionTimeout) Connection timeout.enableSniffer
(boolean enableSniffer) Enabling Sniffer.hostAddressesList
(String hostAddressesList) List of host Addresses, multiple hosts can be separated by comma.lazyStartProducer
(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message).Password.restClient
(org.elasticsearch.client.RestClient restClient) Rest Client of type org.elasticsearch.client.RestClient.sniffAfterFailureDelay
(int sniffAfterFailureDelay) Sniffer after failure delay (in millis).snifferInterval
(int snifferInterval) Sniffer interval (in millis).socketTimeout
(int socketTimeout) Socket timeout.Username.Methods inherited from interface org.apache.camel.builder.component.ComponentBuilder
build, build, doSetProperty, register
-
Method Details
-
connectionTimeout
default ElasticsearchRestClientComponentBuilderFactory.ElasticsearchRestClientComponentBuilder connectionTimeout(int connectionTimeout) Connection timeout. The option is a: <code>int</code> type. Default: 30000 Group: producer- Parameters:
connectionTimeout
- the value to set- Returns:
- the dsl builder
-
hostAddressesList
default ElasticsearchRestClientComponentBuilderFactory.ElasticsearchRestClientComponentBuilder hostAddressesList(String hostAddressesList) List of host Addresses, multiple hosts can be separated by comma. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
hostAddressesList
- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default ElasticsearchRestClientComponentBuilderFactory.ElasticsearchRestClientComponentBuilder 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
-
socketTimeout
default ElasticsearchRestClientComponentBuilderFactory.ElasticsearchRestClientComponentBuilder socketTimeout(int socketTimeout) Socket timeout. The option is a: <code>int</code> type. Default: 30000 Group: producer- Parameters:
socketTimeout
- the value to set- Returns:
- the dsl builder
-
autowiredEnabled
default ElasticsearchRestClientComponentBuilderFactory.ElasticsearchRestClientComponentBuilder 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
-
enableSniffer
default ElasticsearchRestClientComponentBuilderFactory.ElasticsearchRestClientComponentBuilder enableSniffer(boolean enableSniffer) Enabling Sniffer. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
enableSniffer
- the value to set- Returns:
- the dsl builder
-
restClient
default ElasticsearchRestClientComponentBuilderFactory.ElasticsearchRestClientComponentBuilder restClient(org.elasticsearch.client.RestClient restClient) Rest Client of type org.elasticsearch.client.RestClient. This is only for advanced usage. The option is a: <code>org.elasticsearch.client.RestClient</code> type. Group: advanced- Parameters:
restClient
- the value to set- Returns:
- the dsl builder
-
sniffAfterFailureDelay
default ElasticsearchRestClientComponentBuilderFactory.ElasticsearchRestClientComponentBuilder sniffAfterFailureDelay(int sniffAfterFailureDelay) Sniffer after failure delay (in millis). The option is a: <code>int</code> type. Default: 60000 Group: advanced- Parameters:
sniffAfterFailureDelay
- the value to set- Returns:
- the dsl builder
-
snifferInterval
default ElasticsearchRestClientComponentBuilderFactory.ElasticsearchRestClientComponentBuilder snifferInterval(int snifferInterval) Sniffer interval (in millis). The option is a: <code>int</code> type. Default: 60000 Group: advanced- Parameters:
snifferInterval
- the value to set- Returns:
- the dsl builder
-
certificatePath
default ElasticsearchRestClientComponentBuilderFactory.ElasticsearchRestClientComponentBuilder certificatePath(String certificatePath) Certificate Path. This option can also be loaded from an existing file, by prefixing with file: or classpath: followed by the location of the file. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
certificatePath
- the value to set- Returns:
- the dsl builder
-
password
default ElasticsearchRestClientComponentBuilderFactory.ElasticsearchRestClientComponentBuilder password(String password) Password. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
password
- the value to set- Returns:
- the dsl builder
-
user
default ElasticsearchRestClientComponentBuilderFactory.ElasticsearchRestClientComponentBuilder user(String user) Username. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
user
- the value to set- Returns:
- the dsl builder
-