搜索

第 152 章 Hystry 组件

download PDF

从 Camel 版本 2.18 开始提供

hystrix 组件将 Netflix Hystrix 断路器集成到 Camel 路由中。

详情请查看 Hystrix EIP 文档。

Maven 用户需要将以下依赖项添加到这个组件的 pom.xml 中:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-hystrix</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>

152.1. Spring Boot Auto-Configuration

组件支持 3 个选项,如下所列。

Name描述默认值类型

camel.component.hystrix.mapping.enabled

启用 hystrics 指标 servlet 的自动映射到 Spring Web 上下文。

true

布尔值

camel.component.hystrix.mapping.path

Hystrix 指标 servlet 的端点。

/hystrix.stream

字符串

camel.component.hystrix.mapping.servlet-name

Hystrix 指标 servlet 的名称。

HystrixEventStreamServlet

字符串

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.