当我用@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)
{
}