Constructor and Description |
---|
MultiLatencyStatAndMetric(int numBuckets) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Map<String,Map<T,Double>> |
getTimeLatAvg() |
Object |
getValueAndReset() |
protected String |
keyToString(T key) |
void |
record(T key,
long latency)
Record a latency value
|
public MultiLatencyStatAndMetric(int numBuckets)
numBuckets
- the number of buckets to divide the time periods into.public void record(T key, long latency)
Record a latency value
latency
- the measurement to recordpublic Object getValueAndReset()
getValueAndReset
in interface IMetric
public void close()
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.