public class CountMetricSummary extends Object
| Constructor and Description |
|---|
CountMetricSummary() |
| Modifier and Type | Method and Description |
|---|---|
void |
increment(long inc,
long elapsedTimeMillis)
Updates collected summary data with given info.
|
double |
perSecond()
Provides the average count per second for the given metric.
|
long |
total()
Provides the total count (the sum).
|
public void increment(long inc,
long elapsedTimeMillis)
inc - contains the last value counted.elapsedTimeMillis - specifies the number of milliseconds since the count started.public double perSecond()
public long total()
Copyright © 2024. All rights reserved.