Hystrix
Hystrix copied to clipboard
Parameterize coreSize and maximumSize
I want to parameterize the coreSize and maximumSize values in the @HystrixCommand annotation.
@HystrixProperty(name="coreSize", value = "#{hystrixBean.coreSize}") and load the value from the properties file. I get the following error then java.lang.IllegalArgumentException: bad property value. property name 'coreSize'. Expected int value, actual = #{hystrixBean.coreSize}
Kindly suggest.
Also, tried using the following:
- @HystrixProperty(name="coreSize", value = "${hystrixBean.coreSize}") where hystrixBean.coreSize=20 in application.properties
- When I use the @Value annotation and collect in a class member variable, I am getting the value in the variable.