Class LongGaugeImpl.PointImpl

java.lang.Object
io.opencensus.metrics.LongGauge.LongPoint
io.opencensus.implcore.metrics.LongGaugeImpl.PointImpl
Enclosing class:
LongGaugeImpl

public static final class LongGaugeImpl.PointImpl extends LongGauge.LongPoint
Implementation of LongGauge.LongPoint.
  • Field Details

    • value

      private final AtomicLong value
    • defaultTimeSeries

      private final TimeSeries defaultTimeSeries
  • Constructor Details

  • Method Details

    • add

      public void add(long amt)
      Description copied from class: LongGauge.LongPoint
      Adds the given value to the current value. The values can be negative.
      Specified by:
      add in class LongGauge.LongPoint
      Parameters:
      amt - the value to add
    • set

      public void set(long val)
      Description copied from class: LongGauge.LongPoint
      Sets the given value.
      Specified by:
      set in class LongGauge.LongPoint
      Parameters:
      val - the new value.
    • getTimeSeries

      private TimeSeries getTimeSeries(Clock clock)