public class MultiCountStat<T> extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TEN_MIN_IN_SECONDS |
static String |
TEN_MIN_IN_SECONDS_STR |
Constructor and Description |
---|
MultiCountStat(int numBuckets)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
Map<String,Map<T,Long>> |
getTimeCounts() |
void |
incBy(T key,
long count)
Increase the count by the given value.
|
protected String |
keyToString(T key) |
public static final int TEN_MIN_IN_SECONDS
public static final String TEN_MIN_IN_SECONDS_STR
Copyright © 2023 The Apache Software Foundation. All rights reserved.