public class DefaultLongMetric extends Object implements LongMetric
LongMetric interface that is NOT multi-thread safe.| Constructor and Description |
|---|
DefaultLongMetric() |
| Modifier and Type | Method and Description |
|---|---|
long |
getMaxSample()
Returns the maximum sample value recorded.
|
long |
getMinSample()
Returns the minimum sample value recorded.
|
long |
getSampleCount()
Returns the number of samples recorded.
|
long |
getSamplesTotal()
Returns the total of all samples recorded.
|
void |
record(long sample)
Records a sample.
|
String |
toString() |
public void record(long sample)
sample - the sample to be recordedpublic long getSampleCount()
LongMetricgetSampleCount in interface LongMetricpublic long getSamplesTotal()
LongMetricgetSamplesTotal in interface LongMetricpublic long getMinSample()
LongMetricgetMinSample in interface LongMetricpublic long getMaxSample()
LongMetricgetMaxSample in interface LongMetricCopyright © 2019 Atlassian. All rights reserved.