public class BaseHDRHistogram<T extends java.lang.Enum<T>> extends AbstractMetrics<T> implements PartitionedLatency<T>
| Modifier and Type | Field and Description |
|---|---|
protected org.HdrHistogram.Histogram[] |
histograms |
clazz| Constructor and Description |
|---|
BaseHDRHistogram(java.lang.Class<T> clazz,
org.HdrHistogram.Histogram[] histograms) |
| Modifier and Type | Method and Description |
|---|---|
org.HdrHistogram.Histogram |
getHistogram(T metric) |
long |
getValueAtPercentile(T metric,
double percentile) |
boolean |
isHDR() |
void |
record(T metric,
long number,
long nanoLatency) |
void |
reset() |
getMetricClazzclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricClazzpublic BaseHDRHistogram(java.lang.Class<T> clazz, org.HdrHistogram.Histogram[] histograms)
public void record(T metric, long number, long nanoLatency)
record in interface PartitionedLatency<T extends java.lang.Enum<T>>public org.HdrHistogram.Histogram getHistogram(T metric)
getHistogram in interface PartitionedLatency<T extends java.lang.Enum<T>>public long getValueAtPercentile(T metric, double percentile)
getValueAtPercentile in interface PartitionedLatency<T extends java.lang.Enum<T>>public boolean isHDR()
isHDR in interface PartitionedLatency<T extends java.lang.Enum<T>>public void reset()
reset in interface PartitionedLatency<T extends java.lang.Enum<T>>reset in interface ResettableCopyright © 2014 Tim Brooks. All Rights Reserved.