Hystrix 方法已弃用
Hystrix method deprecated
我正在使用 hystrix api 版本 1.5.4。我看到 withExecutionIsolationThreadTimeoutInMilliseconds
方法已被弃用。替代方法是什么?
public HystrixHelloCommand(String message) {
super(HystrixCommand.Setter.withGroupKey(HystrixCommandGroupKey.Factory.asKey("MyGroup")).andCommandPropertiesDefaults(
HystrixCommandProperties.Setter()
.withCircuitBreakerEnabled(true).withExecutionIsolationThreadTimeoutInMilliseconds(2000)));
}
根据 Doc 它被 withExecutionTimeoutInMilliseconds
取代,这就是它所说的:
com.netflix.hystrix.HystrixCommandProperties.Setter.withExecutionIsolationThreadTimeoutInMilliseconds(int)
As of 1.4.0, replaced with
HystrixCommandProperties.Setter.withExecutionTimeoutInMilliseconds(int).
Timeouts are no longer applied only to thread-isolated commands, so a
thread-specific name is misleading
我正在使用 hystrix api 版本 1.5.4。我看到 withExecutionIsolationThreadTimeoutInMilliseconds
方法已被弃用。替代方法是什么?
public HystrixHelloCommand(String message) {
super(HystrixCommand.Setter.withGroupKey(HystrixCommandGroupKey.Factory.asKey("MyGroup")).andCommandPropertiesDefaults(
HystrixCommandProperties.Setter()
.withCircuitBreakerEnabled(true).withExecutionIsolationThreadTimeoutInMilliseconds(2000)));
}
根据 Doc 它被 withExecutionTimeoutInMilliseconds
取代,这就是它所说的:
com.netflix.hystrix.HystrixCommandProperties.Setter.withExecutionIsolationThreadTimeoutInMilliseconds(int) As of 1.4.0, replaced with HystrixCommandProperties.Setter.withExecutionTimeoutInMilliseconds(int). Timeouts are no longer applied only to thread-isolated commands, so a thread-specific name is misleading