
public class HystrixPlugins
extends java.lang.Object
register methods in this class| Modifier and Type | Method and Description |
|---|---|
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. |
static void |
reset()
Reset all of the HystrixPlugins to null.
|
public static HystrixPlugins getInstance()
public static void reset()
Hystrix.reset()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 (via Archaius): 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 implementationjava.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 (via Archaius): 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 implementationjava.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 (via Archaius): 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 implementationjava.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 (via Archaius): 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 implementationjava.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 (via Archaius): 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 implementationjava.lang.IllegalStateException - if called more than once or after the default was initialized (if usage occurs before trying to register)