【发布时间】:2020-09-07 23:04:48
【问题描述】:
当我使用 @HystrixCommand Annotation 注释方法时,它是如何工作的
@HystrixCommand(fallbackMethod="getfallBackdisplayDoctorsAndProducts_lipid",
commandProperties= {
@HystrixProperty(name="execution.isolation.thread.timeoutInMilliseconds",value="150"),
@HystrixProperty(name="circuitBreaker.requestVolumeThreshold",value="25"),
@HystrixProperty(name="circuitBreaker.errorThresholdPercentage",value="50"),
@HystrixProperty(name="circuitBreaker.sleepWindowInMilliseconds",value="5000")
})
public List<DoctorsAndProducts> displayDoctorsAndProducts(LipidProfile lipidProfile)
{
}
【问题讨论】:
标签: spring-boot microservices netflix-eureka hystrix