【发布时间】:2014-12-19 17:01:23
【问题描述】:
我正在尝试将 hystrix-javanica 用于 HystrixCommand 的 AspectJ 注释。 我可以按如下方式配置命令属性:
@HystrixCommand(commandKey = "myCommand",
groupKey = "myServiceImpl",
threadPoolKey = "myThreadPoolKey",
fallbackMethod = "getFallback",
commandProperties = {
@HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "20000"),
@HystrixProperty(name = "circuitBreaker.requestVolumeThreshold", value = "1000"),
@HystrixProperty(name = "circuitBreaker.sleepWindowInMilliseconds", value = "20000"),
@HystrixProperty(name = "circuitBreaker.errorThresholdPercentage", value = "20000"),
@HystrixProperty(name = "metrics.rollingStats.timeInMilliseconds", value = "20000"),
}
)
)
但我没有看到配置线程池属性的选项。 我检查了界面并没有它:github link 有没有其他方法可以指定?
【问题讨论】:
标签: java aspectj netflix hystrix