public class LongSampler extends BoundedBuffer<Long>
| Constructor and Description |
|---|
LongSampler(int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
double |
average()
Returns the average value.
|
int |
countAboveThreshold(long threshold)
Returns the number of values which are greater or equals to the threshold value.
|
add, getMaxSize, iteratorpublic double average()
public int countAboveThreshold(long threshold)
threshold - the threshold valueCopyright © 2025 JBoss by Red Hat. All Rights Reserved.