Package io.opencensus.implcore.metrics
Class DerivedLongCumulativeImpl.PointWithFunction<T>
- java.lang.Object
-
- io.opencensus.implcore.metrics.DerivedLongCumulativeImpl.PointWithFunction<T>
-
- Enclosing class:
- DerivedLongCumulativeImpl
public static final class DerivedLongCumulativeImpl.PointWithFunction<T> extends java.lang.Object
Implementation ofDerivedLongCumulativeImpl.PointWithFunction
with an object and a callback function.
-
-
Field Summary
Fields Modifier and Type Field Description private ToLongFunction<T>
function
private java.util.List<LabelValue>
labelValues
private java.lang.ref.WeakReference<T>
ref
private Timestamp
startTime
private long
value
-
Constructor Summary
Constructors Constructor Description PointWithFunction(java.util.List<LabelValue> labelValues, T obj, ToLongFunction<T> function, Timestamp startTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private TimeSeries
getTimeSeries(Clock clock)
-
-
-
Field Detail
-
labelValues
private final java.util.List<LabelValue> labelValues
-
startTime
private final Timestamp startTime
-
ref
@Nullable private final java.lang.ref.WeakReference<T> ref
-
function
private final ToLongFunction<T> function
-
value
private long value
-
-
Constructor Detail
-
PointWithFunction
PointWithFunction(java.util.List<LabelValue> labelValues, @Nullable T obj, ToLongFunction<T> function, Timestamp startTime)
-
-
Method Detail
-
getTimeSeries
private TimeSeries getTimeSeries(Clock clock)
-
-