
public class HystrixCollapserMetrics extends HystrixMetrics
HystrixCollapser to record metrics.
HystrixEventNotifier not hooked up yet. It may be in the future.counter| Modifier and Type | Method and Description |
|---|---|
int |
getBatchSizeMean() |
int |
getBatchSizePercentile(double percentile)
Retrieve the batch size for the
HystrixCollapser being invoked at a given percentile. |
HystrixCollapserKey |
getCollapserKey()
HystrixCollapserKey these metrics represent. |
static HystrixCollapserMetrics |
getInstance(HystrixCollapserKey key,
HystrixCollapserProperties properties)
Get or create the
HystrixCollapserMetrics instance for a given HystrixCollapserKey. |
static java.util.Collection<HystrixCollapserMetrics> |
getInstances()
All registered instances of
HystrixCollapserMetrics |
HystrixCollapserProperties |
getProperties() |
int |
getShardSizeMean() |
int |
getShardSizePercentile(double percentile)
Retrieve the shard size for the
HystrixCollapser being invoked at a given percentile. |
void |
markBatch(int batchSize) |
void |
markRequestBatched() |
void |
markResponseFromCache() |
void |
markShards(int numShards) |
getCumulativeCount, getRollingCountpublic static HystrixCollapserMetrics getInstance(HystrixCollapserKey key, HystrixCollapserProperties properties)
HystrixCollapserMetrics instance for a given HystrixCollapserKey.
This is thread-safe and ensures only 1 HystrixCollapserMetrics per HystrixCollapserKey.
key - HystrixCollapserKey of HystrixCollapser instance requesting the HystrixCollapserMetricsHystrixCollapserMetricspublic static java.util.Collection<HystrixCollapserMetrics> getInstances()
HystrixCollapserMetricsCollection<HystrixCollapserMetrics>public HystrixCollapserKey getCollapserKey()
HystrixCollapserKey these metrics represent.public HystrixCollapserProperties getProperties()
public int getBatchSizePercentile(double percentile)
HystrixCollapser being invoked at a given percentile.
Percentile capture and calculation is configured via HystrixCollapserProperties.metricsRollingStatisticalWindowInMilliseconds() and other related properties.
percentile - Percentile such as 50, 99, or 99.5.public int getBatchSizeMean()
public int getShardSizePercentile(double percentile)
HystrixCollapser being invoked at a given percentile.
Percentile capture and calculation is configured via HystrixCollapserProperties.metricsRollingStatisticalWindowInMilliseconds() and other related properties.
percentile - Percentile such as 50, 99, or 99.5.public int getShardSizeMean()
public void markRequestBatched()
public void markResponseFromCache()
public void markBatch(int batchSize)
public void markShards(int numShards)