94.3. Spring Boot Auto-Configuration


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

Expand
名称描述默认类型

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

基本验证用户

 

字符串

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat