Class ThreadSafeValue

java.lang.Object
io.deephaven.base.stats.Value
io.deephaven.base.stats.ThreadSafeValue
Direct Known Subclasses:
ThreadSafeCounter

public abstract class ThreadSafeValue extends Value
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.

  • Constructor Details

    • ThreadSafeValue

      public ThreadSafeValue(long now)
    • ThreadSafeValue

      protected ThreadSafeValue(History history)
  • Method Details