Class 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 Detail

      • FlinkGaugeWrapper

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

      • 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)