0

HystrixThreadPoolPropertiesに固有のインスタンス (またはその他のプロパティ コンテナー)を取得する方法はありますHystrixThreadPoolKeyか?

したがって、基本的に、デフォルトのスレッドプールのプロパティは、次のコマンドを実行して提供される構成にオーバーレイされます。

HystrixCommand.Setter.withGroupKey(<some group>)
    .andThreadPoolKey(hystrixThreadPoolKey)
    .andThreadPoolPropertiesDefaults(...)

私は次のアプローチを試しました:

HystrixPropertiesStrategy hystrixPropertiesStrategy = HystrixPropertiesStrategyDefault.getInstance();

HystrixThreadPoolProperties hystrixThreadPoolProperties =
            hystrixPropertiesStrategy.getThreadPoolProperties(hystrixThreadPoolKey, HystrixThreadPoolProperties.Setter());

これにより、スレッドプールのデフォルトの Hystrix 構成が回復されるようですが、キーが対応する特定のプールに固有に行ったプロパティの変更は回復されません。

スレッドプールから実行するコマンドを実行すると、スレッドプールが実際に構成を取得していることを確認できますが、これは当てはまります。

4

1 に答える 1