Class CarrotMicroMeterIntegration
- java.lang.Object
-
- cn.boboweike.carrot.configuration.CarrotMicroMeterIntegration
-
- All Implemented Interfaces:
AutoCloseable
public class CarrotMicroMeterIntegration extends Object implements AutoCloseable
A wrapper around a MicrometerMeterRegistrythat allows to integrate Micrometer with Carrot. This wrapper is needed as otherwise the CarrotConfiguration class would have a dependency on Micrometer which is optional.
-
-
Constructor Summary
Constructors Constructor Description CarrotMicroMeterIntegration(io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidinitialize(PartitionedStorageProvider storageProvider, BackgroundTaskServer backgroundTaskServer)
-
-
-
Method Detail
-
initialize
public void initialize(PartitionedStorageProvider storageProvider, BackgroundTaskServer backgroundTaskServer)
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-