public class MultiLatencyStat<T> extends Object
Keeps track of approximate latency for the last 10 mins, 3 hours, 1 day, and all time. for the same keys
Constructor and Description |
---|
MultiLatencyStat(int numBuckets)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
Map<String,Map<T,Double>> |
getTimeLatAvg() |
void |
record(T key,
long latency)
Record a latency value.
|
Copyright © 2022 The Apache Software Foundation. All rights reserved.