Constructor and Description |
---|
AvgMinMaxCounter(String name) |
Modifier and Type | Method and Description |
---|---|
void |
add(long value)
Register a value.
|
void |
addDataPoint(long value) |
double |
getAvg() |
long |
getCount() |
long |
getMax() |
long |
getMin() |
long |
getTotal() |
void |
reset() |
void |
resetMax() |
Map<String,Object> |
values() |
public AvgMinMaxCounter(String name)
public void addDataPoint(long value)
public double getAvg()
public long getCount()
public long getMax()
public long getMin()
public long getTotal()
public void resetMax()
public void add(long value)
Summary
This method is thread safe, The MetricsProvider will take care of synchronization.
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.