
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.hystrix.strategy.properties.HystrixPropertiesStrategy
public abstract class HystrixPropertiesStrategy
Abstract class with default implementations of factory methods for properties used by various components of Hystrix.
See HystrixPlugins or the Hystrix GitHub Wiki for information on configuring plugins: https://github.com/Netflix/Hystrix/wiki/Plugins.
| Constructor Summary | |
|---|---|
HystrixPropertiesStrategy()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HystrixPropertiesStrategy()
| Method Detail |
|---|
public HystrixCommandProperties getCommandProperties(HystrixCommandKey commandKey,
HystrixCommandProperties.Setter builder)
HystrixCommandProperties for HystrixCommand instances with HystrixCommandKey.
Default Implementation
Constructs instance of HystrixPropertiesCommandDefault.
commandKey - HystrixCommandKey representing the name or type of HystrixCommandbuilder - HystrixCommandProperties.Setter with default overrides as injected from the HystrixCommand implementation.
The builder will return NULL for each value if no override was provided.
HystrixCommandProperties
public java.lang.String getCommandPropertiesCacheKey(HystrixCommandKey commandKey,
HystrixCommandProperties.Setter builder)
HystrixCommandProperties implementations.
Typically this would return HystrixCommandKey.name() but can be done differently if required.
For example, null can be returned which would cause it to not cache and invoke HystrixPropertiesStrategy.getCommandProperties(com.netflix.hystrix.HystrixCommandKey, com.netflix.hystrix.HystrixCommandProperties.Setter) for each HystrixCommand instantiation (not recommended).
Default Implementation
Returns HystrixCommandKey.name()
commandKey - builder -
HystrixCommandProperties implementation.
public HystrixThreadPoolProperties getThreadPoolProperties(HystrixThreadPoolKey threadPoolKey,
HystrixThreadPoolProperties.Setter builder)
HystrixThreadPoolProperties for HystrixThreadPool instances with HystrixThreadPoolKey.
Default Implementation
Constructs instance of HystrixPropertiesThreadPoolDefault.
threadPoolKey - HystrixThreadPoolKey representing the name or type of HystrixThreadPoolbuilder - HystrixThreadPoolProperties.Setter with default overrides as injected via HystrixCommand to the HystrixThreadPool implementation.
The builder will return NULL for each value if no override was provided.
HystrixThreadPoolProperties
public java.lang.String getThreadPoolPropertiesCacheKey(HystrixThreadPoolKey threadPoolKey,
HystrixThreadPoolProperties.Setter builder)
HystrixThreadPoolProperties implementations.
Typically this would return HystrixThreadPoolKey.name() but can be done differently if required.
For example, null can be returned which would cause it to not cache and invoke HystrixPropertiesStrategy.getThreadPoolProperties(com.netflix.hystrix.HystrixThreadPoolKey, com.netflix.hystrix.HystrixThreadPoolProperties.Setter) for each HystrixThreadPool instantiation (not recommended).
Default Implementation
Returns HystrixThreadPoolKey.name()
threadPoolKey - builder -
HystrixThreadPoolProperties implementation.
public HystrixCollapserProperties getCollapserProperties(HystrixCollapserKey collapserKey,
HystrixCollapserProperties.Setter builder)
HystrixCollapserProperties for HystrixCollapser instances with HystrixCollapserKey.
Default Implementation
Constructs instance of HystrixPropertiesCollapserDefault.
collapserKey - HystrixCollapserKey representing the name or type of HystrixCollapserbuilder - HystrixCollapserProperties.Setter with default overrides as injected to the HystrixCollapser implementation.
The builder will return NULL for each value if no override was provided.
HystrixCollapserProperties
public java.lang.String getCollapserPropertiesCacheKey(HystrixCollapserKey collapserKey,
HystrixCollapserProperties.Setter builder)
HystrixCollapserProperties implementations.
Typically this would return HystrixCollapserKey.name() but can be done differently if required.
For example, null can be returned which would cause it to not cache and invoke HystrixPropertiesStrategy.getCollapserProperties(com.netflix.hystrix.HystrixCollapserKey, com.netflix.hystrix.HystrixCollapserProperties.Setter) for each HystrixCollapser instantiation (not recommended).
Default Implementation
Returns HystrixCollapserKey.name()
collapserKey - builder -
HystrixCollapserProperties implementation.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||