【发布时间】:2016-08-10 06:31:26
【问题描述】:
我正在使用 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)));
}
【问题讨论】:
标签: netflix hystrix spring-cloud-netflix