Class FlinkGaugeWrapper<T>

java.lang.Object
org.apache.flink.dropwizard.metrics.FlinkGaugeWrapper<T>
All Implemented Interfaces:
com.codahale.metrics.Gauge<T>, com.codahale.metrics.Metric

public class FlinkGaugeWrapper<T> extends Object implements com.codahale.metrics.Gauge<T>
A wrapper that allows a Flink gauge to be used as a DropWizard gauge.
  • Constructor Details

    • FlinkGaugeWrapper

      public FlinkGaugeWrapper(org.apache.flink.metrics.Gauge<T> gauge)
  • Method Details

    • getValue

      public T getValue()
      Specified by:
      getValue in interface com.codahale.metrics.Gauge<T>
    • fromGauge

      public static <T> FlinkGaugeWrapper<T> fromGauge(org.apache.flink.metrics.Gauge<?> gauge)