- All Known Implementing Classes:
- BufferGaugeService, DefaultGaugeService, DropwizardMetricServices
- 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 interface GaugeService
A service that can be used to submit a named double value for storage and analysis. Any
statistics or analysis that needs to be carried out is best left for other concerns,
but ultimately they are under control of the implementation of this service. For
instance, the value submitted here could be a method execution timing result, and it
would go to a backend that keeps a histogram of recent values for comparison purposes.
Or it could be a simple measurement of a sensor value (like a temperature reading) to
be passed on to a monitoring system in its raw form.
- Author:
- Dave Syer