Package io.opencensus.implcore.metrics
Class DoubleGaugeImpl.PointImpl
java.lang.Object
io.opencensus.metrics.DoubleGauge.DoublePoint
io.opencensus.implcore.metrics.DoubleGaugeImpl.PointImpl
- Enclosing class:
DoubleGaugeImpl
Implementation of
DoubleGauge.DoublePoint
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TimeSeries
private final com.google.common.util.concurrent.AtomicDouble
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(double amt) Adds the given value to the current value.private TimeSeries
getTimeSeries
(Clock clock) void
set
(double val) Sets the given value.
-
Field Details
-
value
private final com.google.common.util.concurrent.AtomicDouble value -
defaultTimeSeries
-
-
Constructor Details
-
PointImpl
PointImpl(List<LabelValue> labelValues)
-
-
Method Details
-
add
public void add(double amt) Description copied from class:DoubleGauge.DoublePoint
Adds the given value to the current value. The values can be negative.- Specified by:
add
in classDoubleGauge.DoublePoint
- Parameters:
amt
- the value to add
-
set
public void set(double val) Description copied from class:DoubleGauge.DoublePoint
Sets the given value.- Specified by:
set
in classDoubleGauge.DoublePoint
- Parameters:
val
- the new value.
-
getTimeSeries
-