Interface AbstractRegistry.GaugeFactory.SupplierBased

Enclosing interface:
AbstractRegistry.GaugeFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface AbstractRegistry.GaugeFactory.SupplierBased
Gauge factory based on a supplier which provides the gauge value.
  • Method Summary

    Modifier and Type
    Method
    Description
    <R extends Number>
    Gauge<R>
    createGauge(Metadata metadata, Supplier<R> valueSupplier)
    Creates a gauge implemention with the specified metadata which invokes the provided supplier to fetch the gauge value.
  • Method Details

    • createGauge

      <R extends Number> Gauge<R> createGauge(Metadata metadata, Supplier<R> valueSupplier)
      Creates a gauge implemention with the specified metadata which invokes the provided supplier to fetch the gauge value.
      Type Parameters:
      R - specific Number subtype the gauge reports
      Parameters:
      metadata - metadata to use in defining the gauge
      valueSupplier - Supplier of the gauge value
      Returns:
      new gauge implementation