我正在尝试将 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链接 有没有其他方法可以指定它?