Class ReaderMetricsContext

    • Constructor Detail

      • ReaderMetricsContext

        public ReaderMetricsContext​(org.apache.flink.metrics.MetricGroup metricGroup)
    • Method Detail

      • counter

        public <T extends java.lang.Number> MetricsContext.Counter<T> counter​(java.lang.String name,
                                                                              java.lang.Class<T> type,
                                                                              MetricsContext.Unit unit)
        Description copied from interface: MetricsContext
        Get a named counter of a specific type. Metric implementations may impose restrictions on what types are supported for specific counters.
        Specified by:
        counter in interface MetricsContext
        Parameters:
        name - name of the metric
        type - numeric type of the counter value
        unit - the unit designation of the metric
        Returns:
        a counter implementation