第152章 Hystrix コンポーネント

Camel バージョン 2.18 以降で利用可能

hystrix コンポーネントは、キャメルルートに Netflix Hystrix サーキットブレーカーを統合します。

詳細については、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 つのオプションをサポートします。

名前説明デフォルトタイプ

camel.component.hystrix.mapping.enabled

hystrics メトリックサーブレットの Spring Web コンテキストへの自動マッピングを有効にします。

true

Boolean

camel.component.hystrix.mapping.path

hystrix メトリクスサーブレットのエンドポイント。

/hystrix.stream

String

camel.component.hystrix.mapping.servlet-name

Hystrix メトリックサーブレットの名前。

HystrixEventStreamServlet

String