public class HystrixPropertiesFactory
extends java.lang.Object
This uses given HystrixPropertiesStrategy implementations to construct Properties instances and caches each instance according to the cache key provided.
| Constructor and Description |
|---|
HystrixPropertiesFactory() |
| Modifier and Type | Method and Description |
|---|---|
static HystrixCollapserProperties |
getCollapserProperties(HystrixCollapserKey key,
HystrixCollapserProperties.Setter builder)
Get an instance of
HystrixCollapserProperties with the given factory HystrixPropertiesStrategy implementation for each HystrixCollapserKey instance. |
static HystrixCommandProperties |
getCommandProperties(HystrixCommandKey key,
HystrixCommandProperties.Setter builder)
Get an instance of
HystrixCommandProperties with the given factory HystrixPropertiesStrategy implementation for each HystrixCommand instance. |
static HystrixThreadPoolProperties |
getThreadPoolProperties(HystrixThreadPoolKey key,
HystrixThreadPoolProperties.Setter builder)
Get an instance of
HystrixThreadPoolProperties with the given factory HystrixPropertiesStrategy implementation for each HystrixThreadPool instance. |
static void |
reset()
Clears all the defaults in the static property cache.
|
public static void reset()
Hystrix.reset()public static HystrixCommandProperties getCommandProperties(HystrixCommandKey key, HystrixCommandProperties.Setter builder)
HystrixCommandProperties with the given factory HystrixPropertiesStrategy implementation for each HystrixCommand instance.key - Pass-thru to HystrixPropertiesStrategy.getCommandProperties(com.netflix.hystrix.HystrixCommandKey, com.netflix.hystrix.HystrixCommandProperties.Setter) implementation.builder - Pass-thru to HystrixPropertiesStrategy.getCommandProperties(com.netflix.hystrix.HystrixCommandKey, com.netflix.hystrix.HystrixCommandProperties.Setter) implementation.HystrixCommandProperties instancepublic static HystrixThreadPoolProperties getThreadPoolProperties(HystrixThreadPoolKey key, HystrixThreadPoolProperties.Setter builder)
HystrixThreadPoolProperties with the given factory HystrixPropertiesStrategy implementation for each HystrixThreadPool instance.key - Pass-thru to HystrixPropertiesStrategy.getThreadPoolProperties(com.netflix.hystrix.HystrixThreadPoolKey, com.netflix.hystrix.HystrixThreadPoolProperties.Setter) implementation.builder - Pass-thru to HystrixPropertiesStrategy.getThreadPoolProperties(com.netflix.hystrix.HystrixThreadPoolKey, com.netflix.hystrix.HystrixThreadPoolProperties.Setter) implementation.HystrixThreadPoolProperties instancepublic static HystrixCollapserProperties getCollapserProperties(HystrixCollapserKey key, HystrixCollapserProperties.Setter builder)
HystrixCollapserProperties with the given factory HystrixPropertiesStrategy implementation for each HystrixCollapserKey instance.key - Pass-thru to HystrixPropertiesStrategy.getCollapserProperties(com.netflix.hystrix.HystrixCollapserKey, com.netflix.hystrix.HystrixCollapserProperties.Setter) implementation.builder - Pass-thru to HystrixPropertiesStrategy.getCollapserProperties(com.netflix.hystrix.HystrixCollapserKey, com.netflix.hystrix.HystrixCollapserProperties.Setter) implementation.HystrixCollapserProperties instance