Package org.apache.storm.metric.internal
Class MultiLatencyStat<T>
- java.lang.Object
-
- org.apache.storm.metric.internal.MultiLatencyStat<T>
-
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 Summary
Constructors Constructor Description MultiLatencyStat(int numBuckets)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Map<String,Map<T,Double>>
getTimeLatAvg()
void
record(T key, long latency)
Record a latency value.
-