Package io.opencensus.implcore.metrics
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 ofLongGauge.LongPoint
.
-
-
Field Summary
Fields Modifier and Type Field Description private TimeSeries
defaultTimeSeries
private java.util.concurrent.atomic.AtomicLong
value
-
Constructor Summary
Constructors Constructor Description PointImpl(java.util.List<LabelValue> labelValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(long amt)
Adds the given value to the current value.private TimeSeries
getTimeSeries(Clock clock)
void
set(long val)
Sets the given value.
-
-
-
Field Detail
-
value
private final java.util.concurrent.atomic.AtomicLong value
-
defaultTimeSeries
private final TimeSeries defaultTimeSeries
-
-
Constructor Detail
-
PointImpl
PointImpl(java.util.List<LabelValue> labelValues)
-
-
Method Detail
-
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 classLongGauge.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 classLongGauge.LongPoint
- Parameters:
val
- the new value.
-
getTimeSeries
private TimeSeries getTimeSeries(Clock clock)
-
-