94.3. Spring Boot Auto-Configuration

组件支持 13 个选项,它们如下所列。

名称描述默认类型

camel.component.elasticsearch-rest.client

要使用现有配置的 Elasticsearch 客户端,而不是为每个端点创建客户端。这允许使用特定设置自定义客户端。选项是一个 org.elasticsearch.client.RestClient 类型。

 

字符串

camel.component.elasticsearch-rest.connection-timeout

连接超时前要等待的 ms 的时间。

30000

整数

camel.component.elasticsearch-rest.enable-s-s-l

启用 SSL

false

布尔值

camel.component.elasticsearch-rest.enable-sniffer

启用自动从正在运行的 Elasticsearch 集群中发现节点

false

布尔值

camel.component.elasticsearch-rest.enabled

是否启用 elasticsearch-rest 组件的自动配置。默认启用。

 

布尔值

camel.component.elasticsearch-rest.host-addresses

使用 ip:port 格式的远程传输地址的逗号分隔列表。对于要考虑的主机地址,IP 和端口选项必须留空。

 

字符串

camel.component.elasticsearch-rest.max-retry-timeout

重试前 ms 的时间

30000

整数

camel.component.elasticsearch-rest.password

进行身份验证的密码

 

字符串

camel.component.elasticsearch-rest.resolve-property-placeholders

启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。

true

布尔值

camel.component.elasticsearch-rest.sniff-after-failure-delay

出现故障后调度的 sniff 执行的延迟(以毫秒为单位)

60000

整数

camel.component.elasticsearch-rest.sniffer-interval

以毫秒为单位连续执行间隔。当禁用 sniffOnFailure 时,或者当连续的执行间没有故障时,会hour。

300000

整数

camel.component.elasticsearch-rest.socket-timeout

在套接字超时前等待的 ms 中的超时时间。

30000

整数

camel.component.elasticsearch-rest.user

基本验证用户

 

字符串