public final class LongDiffMapStat extends MapStat<Long,LongDiffStat>
LongDiffStat values
which can be looked up with a String key, and that returns results as a
formatted string. Only supports CUMULATIVE stats.definition| Constructor and Description |
|---|
LongDiffMapStat(StatGroup group,
StatDefinition definition,
long validityMillis)
Creates an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
LongDiffMapStat |
computeInterval(Stat<String> base)
Ignores base for a non-additive stat.
|
LongDiffMapStat |
copy()
Returns a copy of this statistic.
|
LongDiffStat |
createStat(String key,
Stat<Long> base)
Creates, stores, and returns a new stat for the specified key and base
stat.
|
void |
negate()
Does nothing for a non-additive stat.
|
add, clear, copyAndClear, get, getFormattedValue, getMap, isNotSet, removeStat, setcopyAndAdd, getDefinition, toString, toStringVerbosepublic LongDiffMapStat(StatGroup group, StatDefinition definition, long validityMillis)
group - the owning groupdefinition - the associated definitionvalidityMillis - the amount of time, in milliseconds, which a
computed difference remains validpublic LongDiffStat createStat(String key, Stat<Long> base)
key - the new keybase - the base statpublic LongDiffMapStat copy()
BaseStatpublic LongDiffMapStat computeInterval(Stat<String> base)
computeInterval in class Stat<String>Copyright © 2024. All rights reserved.