public class LatencyPercentileMapStat extends MapStat<Long,LatencyPercentile>
LatencyPercentile
values which can be looked up with a String key, and that returns results as
a formatted string.definition| Constructor and Description |
|---|
LatencyPercentileMapStat(StatGroup group,
StatDefinition definition,
float percentile)
Creates an instance of this class using the default maximum for tracking
latency values of .
|
LatencyPercentileMapStat(StatGroup group,
StatDefinition definition,
float percentile,
int maxTrackedLatencyMillis)
Creates an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
LatencyPercentileMapStat |
computeInterval(Stat<String> base)
Creates a new map that contains entries that represent the interval for
all keys that appear in both maps.
|
LatencyPercentileMapStat |
copy()
Returns a copy of this statistic.
|
LatencyPercentile |
createStat(String key)
Creates, stores, and returns a new stat for the specified key.
|
void |
negate()
Negate the value.
|
add, clear, copyAndClear, get, getFormattedValue, getMap, isNotSet, removeStat, setcopyAndAdd, getDefinition, toString, toStringVerbosepublic LatencyPercentileMapStat(StatGroup group, StatDefinition definition, float percentile)
group - the owning groupdefinition - the associated definitionpercentile - the percentile latency to report as a ratio between
0.0 and 1.0IllegalArgumentException - if the stat definition type is not
INCREMENTAL, the percentile is less than 0.0 or greater than 1.0 or
maxTrackedLatencyMillis is less than 0public LatencyPercentileMapStat(StatGroup group, StatDefinition definition, float percentile, int maxTrackedLatencyMillis)
group - the owning groupdefinition - the associated definitionpercentile - the percentile latency to report as a ratio between
0.0 and 1.0maxTrackedLatencyMillis - the maximum for tracking latency valuesIllegalArgumentException - if the stat definition type is not
INCREMENTAL, the percentile is less than 0.0 or greater than 1.0 or
maxTrackedLatencyMillis is less than 0public LatencyPercentile createStat(String key)
key - the keypublic LatencyPercentileMapStat copy()
BaseStatpublic LatencyPercentileMapStat computeInterval(Stat<String> base)
computeInterval in class Stat<String>Copyright © 2024. All rights reserved.