public class HystrixCodaHaleMetricsPublisherCollapser
extends java.lang.Object
implements com.netflix.hystrix.strategy.metrics.HystrixMetricsPublisherCollapser
HystrixMetricsPublisherCollapser using Coda Hale Metrics (https://github.com/codahale/metrics)| Constructor and Description |
|---|
HystrixCodaHaleMetricsPublisherCollapser(com.netflix.hystrix.HystrixCollapserKey collapserKey,
com.netflix.hystrix.HystrixCollapserMetrics metrics,
com.netflix.hystrix.HystrixCollapserProperties properties,
com.codahale.metrics.MetricRegistry metricRegistry) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createCumulativeCountForEvent(java.lang.String name,
com.netflix.hystrix.util.HystrixRollingNumberEvent event) |
protected java.lang.String |
createMetricName(java.lang.String name) |
protected void |
createRollingCountForEvent(java.lang.String name,
com.netflix.hystrix.util.HystrixRollingNumberEvent event) |
void |
initialize()
An implementation note.
|
protected void |
safelyCreateCumulativeCountForEvent(java.lang.String name,
rx.functions.Func0<com.netflix.hystrix.util.HystrixRollingNumberEvent> eventThunk) |
protected void |
safelyCreateRollingCountForEvent(java.lang.String name,
rx.functions.Func0<com.netflix.hystrix.util.HystrixRollingNumberEvent> eventThunk) |
public HystrixCodaHaleMetricsPublisherCollapser(com.netflix.hystrix.HystrixCollapserKey collapserKey,
com.netflix.hystrix.HystrixCollapserMetrics metrics,
com.netflix.hystrix.HystrixCollapserProperties properties,
com.codahale.metrics.MetricRegistry metricRegistry)
public void initialize()
initialize in interface com.netflix.hystrix.strategy.metrics.HystrixMetricsPublisherCollapserprotected java.lang.String createMetricName(java.lang.String name)
protected void createCumulativeCountForEvent(java.lang.String name,
com.netflix.hystrix.util.HystrixRollingNumberEvent event)
protected void safelyCreateCumulativeCountForEvent(java.lang.String name,
rx.functions.Func0<com.netflix.hystrix.util.HystrixRollingNumberEvent> eventThunk)
protected void createRollingCountForEvent(java.lang.String name,
com.netflix.hystrix.util.HystrixRollingNumberEvent event)
protected void safelyCreateRollingCountForEvent(java.lang.String name,
rx.functions.Func0<com.netflix.hystrix.util.HystrixRollingNumberEvent> eventThunk)