Package io.deephaven.base.stats
Class ThreadSafeCounter
java.lang.Object
io.deephaven.base.stats.Value
io.deephaven.base.stats.ThreadSafeValue
io.deephaven.base.stats.ThreadSafeCounter
A statistic where each value represents an additive quantity, and thus the sum of the values does have
meaning. Examples include event counts and processing duration. If the sum of the values does not have a
useful interpretation, use
State
instead.
Value.increment(long)
updates the counter, recording a single value. This is the most common usage. (ThreadSafeValue.sample(long)
does exactly the same thing but is a poor verb to use with a Counter.)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.deephaven.base.stats.ThreadSafeValue
sample, toString
-
Field Details
-
FACTORY
-
-
Constructor Details
-
ThreadSafeCounter
public ThreadSafeCounter(long now)
-
-
Method Details
-
getTypeTag
public char getTypeTag()- Specified by:
getTypeTag
in classValue
-