Package io.deephaven.base.stats
Class ThreadSafeValue
java.lang.Object
io.deephaven.base.stats.Value
io.deephaven.base.stats.ThreadSafeValue
- Direct Known Subclasses:
ThreadSafeCounter
A thread-safe extension of the
Value
class.
The sample(long)
method is synchronized, so may introduce contention compared to the unsafe Value version of
sample.
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionThreadSafeValue
(long now) protected
ThreadSafeValue
(History history) -
Method Summary
Methods inherited from class io.deephaven.base.stats.Value
alwaysUpdated, getHistory, getLast, getMax, getMin, getN, getSum, getSum2, getTypeTag, increment, reset, update