2016-08-08 12 views
1

私はhystrix apiバージョン1.5.4を使用しています。メソッドwithExecutionIsolationThreadTimeoutInMillisecondsが推奨されていません。代わりに代わりの方法は何ですか?それはwithExecutionTimeoutInMillisecondsに置き換えられ、これはそれが言うことであるDocあたりとしてHystrixメソッドは非推奨です

public HystrixHelloCommand(String message) { 
    super(HystrixCommand.Setter.withGroupKey(HystrixCommandGroupKey.Factory.asKey("MyGroup")).andCommandPropertiesDefaults(
    HystrixCommandProperties.Setter() 
    .withCircuitBreakerEnabled(true).withExecutionIsolationThreadTimeoutInMilliseconds(2000))); 
} 

答えて

1

com.netflix.hystrix.HystrixCommandProperties.Setter.withExecutionIsolationThreadTimeoutInMilliseconds(INT) は1.4.0のとおり、 HystrixCommandProperties.Setter.withExecutionTimeoutInMilliseconds(int)に置き換えられました。 タイムアウトはスレッド分離コマンドにのみ適用されなくなるため、 スレッド固有の名前は誤解を招く可能性があります

関連する問題