public abstract class HystrixMetricsPublisher
extends java.lang.Object
See HystrixPlugins
or the Hystrix GitHub Wiki for information on configuring plugins: https://github.com/Netflix/Hystrix/wiki/Plugins.
Constructor and Description |
---|
HystrixMetricsPublisher() |
public HystrixMetricsPublisherCommand getMetricsPublisherForCommand(HystrixCommandKey commandKey, HystrixCommandGroupKey commandGroupKey, HystrixCommandMetrics metrics, HystrixCircuitBreaker circuitBreaker, HystrixCommandProperties properties)
HystrixMetricsPublisherCommand
for HystrixCommand
instances having key HystrixCommandKey
.
This will be invoked once per HystrixCommandKey
instance.
Default Implementation
Return instance of HystrixMetricsPublisherCommandDefault
commandKey
- HystrixCommandKey
representing the name or type of HystrixCommand
commandGroupKey
- HystrixCommandGroupKey
of HystrixCommand
metrics
- HystrixCommandMetrics
instance tracking metrics for HystrixCommand
instances having the key as defined by HystrixCommandKey
circuitBreaker
- HystrixCircuitBreaker
instance for HystrixCommand
instances having the key as defined by HystrixCommandKey
properties
- HystrixCommandProperties
instance for HystrixCommand
instances having the key as defined by HystrixCommandKey
HystrixMetricsPublisherCommand
that will have its initialize
method invoked once.public HystrixMetricsPublisherThreadPool getMetricsPublisherForThreadPool(HystrixThreadPoolKey threadPoolKey, HystrixThreadPoolMetrics metrics, HystrixThreadPoolProperties properties)
HystrixMetricsPublisherThreadPool
for HystrixThreadPool
instances having key HystrixThreadPoolKey
.
This will be invoked once per HystrixThreadPoolKey
instance.
Default Implementation
Return instance of HystrixMetricsPublisherThreadPoolDefault
threadPoolKey
- HystrixThreadPoolKey
representing the name or type of HystrixThreadPool
metrics
- HystrixThreadPoolMetrics
instance tracking metrics for the HystrixThreadPool
instance having the key as defined by HystrixThreadPoolKey
properties
- HystrixThreadPoolProperties
instance for the HystrixThreadPool
instance having the key as defined by HystrixThreadPoolKey
HystrixMetricsPublisherThreadPool
that will have its initialize
method invoked once.public HystrixMetricsPublisherCollapser getMetricsPublisherForCollapser(HystrixCollapserKey collapserKey, HystrixCollapserMetrics metrics, HystrixCollapserProperties properties)
HystrixMetricsPublisherCollapser
for HystrixCollapser
instances having key HystrixCollapserKey
.
This will be invoked once per HystrixCollapserKey
instance.
Default Implementation
Return instance of HystrixMetricsPublisherCollapserDefault
collapserKey
- HystrixCollapserKey
representing the name or type of HystrixCollapser
metrics
- HystrixCollapserMetrics
instance tracking metrics for the HystrixCollapser
instance having the key as defined by HystrixCollapserKey
properties
- HystrixCollapserProperties
instance for the HystrixCollapser
instance having the key as defined by HystrixCollapserKey
HystrixMetricsPublisherCollapser
that will have its initialize
method invoked once.