Class BufferGaugeService
- java.lang.Object
- org.springframework.boot.actuate.metrics.buffer.BufferGaugeService
- All Implemented Interfaces:
GaugeService
@UsesJava8 public class BufferGaugeService extends Object implements GaugeService
Fast implementation ofGaugeService
usingGaugeBuffers
.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description BufferGaugeService(GaugeBuffers buffers)
Create aBufferGaugeService
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
submit(String metricName, double value)
Set the specified gauge value.
Constructor Detail
BufferGaugeService
public BufferGaugeService(GaugeBuffers buffers)
Create aBufferGaugeService
instance.- Parameters:
buffers
- the underlying buffers used to store metrics
Method Detail
submit
public void submit(String metricName, double value)
Description copied from interface:GaugeService
Set the specified gauge value.- Specified by:
submit
in interfaceGaugeService
- Parameters:
metricName
- the name of the gauge to setvalue
- the value of the gauge