Package io.deephaven.base.stats
Class Value
java.lang.Object
io.deephaven.base.stats.Value
- Direct Known Subclasses:
Composite,Counter,State,ThreadSafeValue
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalwaysUpdated(boolean b) longgetLast()longgetMax()longgetMin()longgetN()longgetSum()longgetSum2()abstract charvoidincrement(long x) voidreset()voidsample(long x) toString()voidupdate(Item item, ItemUpdateListener listener, long logInterval, long now, long appNow)
-
Field Details
-
n
protected long nThe sample(long) method is not thread safe; and you can get wrong answers out of it. If you require safety, you should instead use a ThreadSafeValue. -
last
protected long last -
sum
protected long sum -
sum2
protected long sum2 -
max
protected long max -
min
protected long min -
history
-
-
Constructor Details
-
Value
public Value(long now) -
Value
-
-
Method Details
-
getN
public long getN() -
getLast
public long getLast() -
getSum
public long getSum() -
getSum2
public long getSum2() -
getMax
public long getMax() -
getMin
public long getMin() -
sample
public void sample(long x) -
increment
public void increment(long x) -
getTypeTag
public abstract char getTypeTag() -
getHistory
-
alwaysUpdated
-
reset
public void reset() -
update
-
toString
-