Метод Hystrix устарел

Я использую 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)));
}

person Kaliappan    schedule 08.08.2016    source источник


Ответы (1)


Согласно Doc, он заменен на withExecutionTimeoutInMilliseconds, и вот что он говорит :

com.netflix.hystrix.HystrixCommandProperties.Setter.withExecutionIsolationThreadTimeoutInMilliseconds(int) В версии 1.4.0 заменен на HystrixCommandProperties.Setter.withExecutionTimeoutInMilliseconds(int). Тайм-ауты больше не применяются только к командам, изолированным от потока, поэтому имя, относящееся к потоку, вводит в заблуждение.

person Grinish Nepal    schedule 09.08.2016