Package io.opencensus.implcore.stats
Class MeasureMapInternal.Builder
- java.lang.Object
-
- io.opencensus.implcore.stats.MeasureMapInternal.Builder
-
- Enclosing class:
- MeasureMapInternal
static class MeasureMapInternal.Builder extends java.lang.ObjectBuilder for theMeasureMapInternalclass.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,AttachmentValue>attachmentsprivate java.util.ArrayList<Measurement>measurements
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) MeasureMapInternalbuild()Constructs aMeasureMapInternalfrom the current measurements.(package private) MeasureMapInternal.Builderput(Measure.MeasureDouble measure, double value)Associates theMeasure.MeasureDoublewith the given value.(package private) MeasureMapInternal.Builderput(Measure.MeasureLong measure, long value)Associates theMeasure.MeasureLongwith the given value.(package private) MeasureMapInternal.BuilderputAttachment(java.lang.String key, AttachmentValue value)
-
-
-
Field Detail
-
measurements
private final java.util.ArrayList<Measurement> measurements
-
attachments
private final java.util.Map<java.lang.String,AttachmentValue> attachments
-
-
Method Detail
-
put
MeasureMapInternal.Builder put(Measure.MeasureDouble measure, double value)
Associates theMeasure.MeasureDoublewith the given value. Subsequent updates to the sameMeasure.MeasureDoublewill overwrite the previous value.- Parameters:
measure- theMeasure.MeasureDoublevalue- the value to be associated withmeasure- Returns:
- this
-
put
MeasureMapInternal.Builder put(Measure.MeasureLong measure, long value)
Associates theMeasure.MeasureLongwith the given value. Subsequent updates to the sameMeasure.MeasureLongwill overwrite the previous value.- Parameters:
measure- theMeasure.MeasureLongvalue- the value to be associated withmeasure- Returns:
- this
-
putAttachment
MeasureMapInternal.Builder putAttachment(java.lang.String key, AttachmentValue value)
-
build
MeasureMapInternal build()
Constructs aMeasureMapInternalfrom the current measurements.
-
-