Package io.grpc.internal
Class MetricRecorderImpl.BatchRecorderImpl
- java.lang.Object
-
- io.grpc.internal.MetricRecorderImpl.BatchRecorderImpl
-
- All Implemented Interfaces:
MetricRecorder.BatchRecorder
- Enclosing class:
- MetricRecorderImpl
static class MetricRecorderImpl.BatchRecorderImpl extends java.lang.Object implements MetricRecorder.BatchRecorder
Recorder for instrument values produced by a batch callback.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.BitSet
allowedInstruments
private MetricSink
sink
-
Constructor Summary
Constructors Constructor Description BatchRecorderImpl(MetricSink sink, java.util.BitSet allowedInstruments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
recordLongGauge(LongGaugeMetricInstrument metricInstrument, long value, java.util.List<java.lang.String> requiredLabelValues, java.util.List<java.lang.String> optionalLabelValues)
Record a long gauge value.
-
-
-
Field Detail
-
sink
private final MetricSink sink
-
allowedInstruments
private final java.util.BitSet allowedInstruments
-
-
Constructor Detail
-
BatchRecorderImpl
BatchRecorderImpl(MetricSink sink, java.util.BitSet allowedInstruments)
-
-
Method Detail
-
recordLongGauge
public void recordLongGauge(LongGaugeMetricInstrument metricInstrument, long value, java.util.List<java.lang.String> requiredLabelValues, java.util.List<java.lang.String> optionalLabelValues)
Description copied from interface:MetricRecorder.BatchRecorder
Record a long gauge value.- Specified by:
recordLongGauge
in interfaceMetricRecorder.BatchRecorder
value
- The value to record.requiredLabelValues
- A list of required label values for the metric.optionalLabelValues
- A list of additional, optional label values for the metric.
-
-