Module io.helidon.metrics.api
Package io.helidon.metrics.api
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.
Gauge factory based on a supplier which provides the gauge value.
-
Method Summary
Modifier and TypeMethodDescriptioncreateGauge(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
Creates a gauge implemention with the specified metadata which invokes the provided supplier to fetch the gauge value.- Type Parameters:
R- specificNumbersubtype the gauge reports- Parameters:
metadata- metadata to use in defining the gaugevalueSupplier-Supplierof the gauge value- Returns:
- new gauge implementation
-