|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.commons.utils.BoundedBuffer<java.lang.Long>
org.exoplatform.commons.utils.LongSampler
public class LongSampler
An object that sample long values.
| Constructor Summary | |
|---|---|
LongSampler(int maxSize)
|
|
| Method Summary | |
|---|---|
double |
average()
Returns the average value. |
int |
countAboveThreshold(long threshold)
Returns the number of values which are greater or equals to the threshold value. |
| Methods inherited from class org.exoplatform.commons.utils.BoundedBuffer |
|---|
add, getMaxSize, getSize, iterator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LongSampler(int maxSize)
| Method Detail |
|---|
public double average()
public int countAboveThreshold(long threshold)
threshold - the threshold value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||