我正在尝试确定应传递给hystrix的参数:
- 线程池
@HystrixProperty(name = "coreSize",value="?")
中的最大线程数
队列 - 传入请求的最大数量
@HystrixProperty(name="maxQueueSize",value="?"
中您要遵循哪些步骤来使hystrix参数化? 下面是我正在尝试做的简化版本。
@HystrixCommand(fallbackMethod = "buildFallbackMethod",threadPoolKey = "licenseByOrgThreadPool",threadPoolProperties =
{@HystrixProperty(name = "coreSize",value="?"),@HystrixProperty(name="maxQueueSize",value="?")}
)
public List<Object> getObject(String Id){
return repository.findById(id);
}
谢谢。