Constructor and Description |
---|
LatencyStatAndMetric(int numBuckets) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Map<String,Double> |
getTimeLatAvg() |
Object |
getValueAndReset() |
void |
record(long latency)
Record a specific latency
|
public LatencyStatAndMetric(int numBuckets)
numBuckets
- the number of buckets to divide the time periods into.public void record(long latency)
Record a specific latency
latency
- what we are recordingpublic Object getValueAndReset()
getValueAndReset
in interface IMetric
public Map<String,Double> getTimeLatAvg()
public void close()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.