草庐IT

HystrixCommandProperties

全部标签

java - 以编程方式更改 Hystrix 属性

我设置了一个断路器,我想更改运行时的参数。线程和超时之类的东西需要在客户现场进行调整。我像这样创建一个HystrixCommandProperties.Setter:HystrixCommandProperties.SetterhystrixProps=HystrixCommandProperties.defaultSetter().withCircuitBreakerSleepWindowInMilliseconds(myconf.sleepWindow);HystrixThreadPoolProperties.SetterthreadPoolSettings=HystrixThre