Netflix/Hystrix

Set maximumSize using @HystrixCommand annotation hystrix version 2.2.4

narayandatt opened this issue · 0 comments

HI Team while i am using @HystrixProperty to set maximumSize i am not able to do in Hystrix version: 2.2.4

code Example:

@HystrixCommand(ignoreExceptions = MyException.class,
threadPoolProperties = {
@HystrixProperty(name = "coreSize", value = "20"),
@HystrixProperty(name = "maximumSize", value = "25"),
@HystrixProperty(name = "allowMaximumSizeToDivergeFromCoreSize", value = "true")
})
public MyPerson getMyPerson(...)

Hystrix version: 2.2.4

Exception:

Caused by: java.lang.IllegalArgumentException: unknown thread pool property: maximumSize
at com.netflix.hystrix.contrib.javanica.conf.HystrixPropertiesManager.initializeProperties(HystrixPropertiesManager.java:125)
at com.netflix.hystrix.contrib.javanica.conf.HystrixPropertiesManager.initializeThreadPoolProperties(HystrixPropertiesManager.java:108)
at com.netflix.hystrix.contrib.javanica.command.GenericSetterBuilder.build(GenericSetterBuilder.java:81)