
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.hystrix.strategy.HystrixPlugins
public class HystrixPlugins
Registry for plugin implementations that allows global override and handles the retrieval of correct implementation based on order of precedence:
register methods in this classSystem.getProperty(String) (see get methods for property names)
| Method Summary | |
|---|---|
HystrixCommandExecutionHook |
getCommandExecutionHook()
Retrieve instance of HystrixCommandExecutionHook to use based on order of precedence as defined in HystrixPlugins class header. |
HystrixConcurrencyStrategy |
getConcurrencyStrategy()
Retrieve instance of HystrixConcurrencyStrategy to use based on order of precedence as defined in HystrixPlugins class header. |
HystrixEventNotifier |
getEventNotifier()
Retrieve instance of HystrixEventNotifier to use based on order of precedence as defined in HystrixPlugins class header. |
static HystrixPlugins |
getInstance()
|
HystrixMetricsPublisher |
getMetricsPublisher()
Retrieve instance of HystrixMetricsPublisher to use based on order of precedence as defined in HystrixPlugins class header. |
HystrixPropertiesStrategy |
getPropertiesStrategy()
Retrieve instance of HystrixPropertiesStrategy to use based on order of precedence as defined in HystrixPlugins class header. |
void |
registerCommandExecutionHook(HystrixCommandExecutionHook impl)
Register a HystrixCommandExecutionHook implementation as a global override of any injected or default implementations. |
void |
registerConcurrencyStrategy(HystrixConcurrencyStrategy impl)
Register a HystrixConcurrencyStrategy implementation as a global override of any injected or default implementations. |
void |
registerEventNotifier(HystrixEventNotifier impl)
Register a HystrixEventNotifier implementation as a global override of any injected or default implementations. |
void |
registerMetricsPublisher(HystrixMetricsPublisher impl)
Register a HystrixMetricsPublisher implementation as a global override of any injected or default implementations. |
void |
registerPropertiesStrategy(HystrixPropertiesStrategy impl)
Register a HystrixPropertiesStrategy implementation as a global override of any injected or default implementations. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static HystrixPlugins getInstance()
public HystrixEventNotifier getEventNotifier()
HystrixEventNotifier to use based on order of precedence as defined in HystrixPlugins class header.
Override default by using HystrixPlugins.registerEventNotifier(HystrixEventNotifier) or setting property: hystrix.plugin.HystrixEventNotifier.implementation with the full classname to
load.
HystrixEventNotifier implementation to usepublic void registerEventNotifier(HystrixEventNotifier impl)
HystrixEventNotifier implementation as a global override of any injected or default implementations.
impl - HystrixEventNotifier implementation
java.lang.IllegalStateException - if called more than once or after the default was initialized (if usage occurs before trying to register)public HystrixConcurrencyStrategy getConcurrencyStrategy()
HystrixConcurrencyStrategy to use based on order of precedence as defined in HystrixPlugins class header.
Override default by using HystrixPlugins.registerConcurrencyStrategy(HystrixConcurrencyStrategy) or setting property: hystrix.plugin.HystrixConcurrencyStrategy.implementation with the
full classname to load.
HystrixConcurrencyStrategy implementation to usepublic void registerConcurrencyStrategy(HystrixConcurrencyStrategy impl)
HystrixConcurrencyStrategy implementation as a global override of any injected or default implementations.
impl - HystrixConcurrencyStrategy implementation
java.lang.IllegalStateException - if called more than once or after the default was initialized (if usage occurs before trying to register)public HystrixMetricsPublisher getMetricsPublisher()
HystrixMetricsPublisher to use based on order of precedence as defined in HystrixPlugins class header.
Override default by using HystrixPlugins.registerMetricsPublisher(HystrixMetricsPublisher) or setting property: hystrix.plugin.HystrixMetricsPublisher.implementation with the full
classname to load.
HystrixMetricsPublisher implementation to usepublic void registerMetricsPublisher(HystrixMetricsPublisher impl)
HystrixMetricsPublisher implementation as a global override of any injected or default implementations.
impl - HystrixMetricsPublisher implementation
java.lang.IllegalStateException - if called more than once or after the default was initialized (if usage occurs before trying to register)public HystrixPropertiesStrategy getPropertiesStrategy()
HystrixPropertiesStrategy to use based on order of precedence as defined in HystrixPlugins class header.
Override default by using HystrixPlugins.registerPropertiesStrategy(HystrixPropertiesStrategy) or setting property: hystrix.plugin.HystrixPropertiesStrategy.implementation with the full
classname to load.
HystrixPropertiesStrategy implementation to usepublic void registerPropertiesStrategy(HystrixPropertiesStrategy impl)
HystrixPropertiesStrategy implementation as a global override of any injected or default implementations.
impl - HystrixPropertiesStrategy implementation
java.lang.IllegalStateException - if called more than once or after the default was initialized (if usage occurs before trying to register)public HystrixCommandExecutionHook getCommandExecutionHook()
HystrixCommandExecutionHook to use based on order of precedence as defined in HystrixPlugins class header.
Override default by using HystrixPlugins.registerCommandExecutionHook(HystrixCommandExecutionHook) or setting property: hystrix.plugin.HystrixCommandExecutionHook.implementation with the
full classname to
load.
HystrixCommandExecutionHook implementation to usepublic void registerCommandExecutionHook(HystrixCommandExecutionHook impl)
HystrixCommandExecutionHook implementation as a global override of any injected or default implementations.
impl - HystrixCommandExecutionHook implementation
java.lang.IllegalStateException - if called more than once or after the default was initialized (if usage occurs before trying to register)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||