public class AvgMinMaxCounterSet extends Metric implements SummarySet
Constructor and Description |
---|
AvgMinMaxCounterSet(String name) |
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
long value)
Register a value.
|
void |
addDataPoint(String key,
long value) |
void |
reset() |
void |
resetMax() |
Map<String,Object> |
values() |
public AvgMinMaxCounterSet(String name)
public void addDataPoint(String key, long value)
public void resetMax()
public void add(String key, long value)
SummarySet
This method is thread safe, The MetricsProvider will take care of synchronization.
add
in interface SummarySet
add
in class Metric
key
- the key to access the Summary for the given keyvalue
- current valueCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.