public class StatCalculator extends Object
| Constructor and Description |
|---|
StatCalculator(int precision)
Create StatCalculator with given precision.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSample(long timestamp,
int elapsed,
boolean success,
int bytes,
int sentBytes) |
SummaryStats |
calculate() |
public StatCalculator(int precision)
precision - Precision to use in HdrHistogram recorderpublic void addSample(long timestamp,
int elapsed,
boolean success,
int bytes,
int sentBytes)
public SummaryStats calculate()
Copyright © 2017–2019 WSO2. All rights reserved.