Change name of CommandProperties variable
This commit is contained in:
parent
09a32798eb
commit
43965e2db3
|
@ -89,16 +89,16 @@ public class HystrixTimeoutTest {
|
||||||
HystrixCommand.Setter config = HystrixCommand
|
HystrixCommand.Setter config = HystrixCommand
|
||||||
.Setter
|
.Setter
|
||||||
.withGroupKey(HystrixCommandGroupKey.Factory.asKey("RemoteServiceGroupCircuitBreaker"));
|
.withGroupKey(HystrixCommandGroupKey.Factory.asKey("RemoteServiceGroupCircuitBreaker"));
|
||||||
HystrixCommandProperties.Setter commandProperties = HystrixCommandProperties.Setter();
|
HystrixCommandProperties.Setter properties = HystrixCommandProperties.Setter();
|
||||||
commandProperties.withExecutionTimeoutInMilliseconds(1000);
|
properties.withExecutionTimeoutInMilliseconds(1000);
|
||||||
|
|
||||||
commandProperties.withCircuitBreakerSleepWindowInMilliseconds(4000);
|
properties.withCircuitBreakerSleepWindowInMilliseconds(4000);
|
||||||
commandProperties.withExecutionIsolationStrategy(
|
properties.withExecutionIsolationStrategy(
|
||||||
HystrixCommandProperties.ExecutionIsolationStrategy.THREAD);
|
HystrixCommandProperties.ExecutionIsolationStrategy.THREAD);
|
||||||
commandProperties.withCircuitBreakerEnabled(true);
|
properties.withCircuitBreakerEnabled(true);
|
||||||
commandProperties.withCircuitBreakerRequestVolumeThreshold(1);
|
properties.withCircuitBreakerRequestVolumeThreshold(1);
|
||||||
|
|
||||||
config.andCommandPropertiesDefaults(commandProperties);
|
config.andCommandPropertiesDefaults(properties);
|
||||||
|
|
||||||
config.andThreadPoolPropertiesDefaults(HystrixThreadPoolProperties.Setter()
|
config.andThreadPoolPropertiesDefaults(HystrixThreadPoolProperties.Setter()
|
||||||
.withMaxQueueSize(1)
|
.withMaxQueueSize(1)
|
||||||
|
|
Loading…
Reference in New Issue