public class LatencyStat extends Object
Constructor and Description |
---|
LatencyStat(int numBuckets)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
Map<String,Double> |
getTimeLatAvg()
Get time latency average.
|
void |
record(long latency)
Record a specific latency.
|
public LatencyStat(int numBuckets)
numBuckets
- the number of buckets to divide the time periods into.public void record(long latency)
latency
- what we are recordingpublic Map<String,Double> getTimeLatAvg()
public void close()
Copyright © 2023 The Apache Software Foundation. All rights reserved.