Package io.opencensus.implcore.metrics
Class LongCumulativeImpl.PointImpl
- java.lang.Object
-
- io.opencensus.metrics.LongCumulative.LongPoint
-
- io.opencensus.implcore.metrics.LongCumulativeImpl.PointImpl
-
- Enclosing class:
- LongCumulativeImpl
public static final class LongCumulativeImpl.PointImpl extends LongCumulative.LongPoint
Implementation ofLongCumulative.LongPoint.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<LabelValue>labelValuesprivate TimestampstartTimeprivate java.util.concurrent.atomic.AtomicLongvalue
-
Constructor Summary
Constructors Constructor Description PointImpl(java.util.List<LabelValue> labelValues, Timestamp startTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long delta)Adds the given value to the current value.private TimeSeriesgetTimeSeries(Clock clock)
-
-
-
Field Detail
-
labelValues
private final java.util.List<LabelValue> labelValues
-
startTime
private final Timestamp startTime
-
value
private final java.util.concurrent.atomic.AtomicLong value
-
-
Constructor Detail
-
PointImpl
PointImpl(java.util.List<LabelValue> labelValues, Timestamp startTime)
-
-
Method Detail
-
add
public void add(long delta)
Description copied from class:LongCumulative.LongPointAdds the given value to the current value. The values cannot be negative.- Specified by:
addin classLongCumulative.LongPoint- Parameters:
delta- the value to add
-
getTimeSeries
private TimeSeries getTimeSeries(Clock clock)
-
-