Package org.cache2k.extra.micrometer
Class MicrometerConfig
- java.lang.Object
-
- org.cache2k.extra.micrometer.MicrometerConfig
-
- All Implemented Interfaces:
org.cache2k.config.BeanMarker
,org.cache2k.config.ConfigBean<MicrometerConfig,MicrometerConfig.Builder>
,org.cache2k.config.ConfigSection<MicrometerConfig,MicrometerConfig.Builder>
public class MicrometerConfig extends Object implements org.cache2k.config.ConfigSection<MicrometerConfig,MicrometerConfig.Builder>
Configuration section for micrometer. This allows configuring the registry in a global configuration and then switch on and off micrometer reporting on a individual cache basis.- Author:
- Jens Wilke
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MicrometerConfig.Builder
-
Constructor Summary
Constructors Constructor Description MicrometerConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MicrometerConfig.Builder
builder()
org.cache2k.config.CustomizationSupplier<io.micrometer.core.instrument.MeterRegistry>
getRegistry()
void
setRegistry(org.cache2k.config.CustomizationSupplier<io.micrometer.core.instrument.MeterRegistry> meterRegistry)
-
-
-
Method Detail
-
getRegistry
public org.cache2k.config.CustomizationSupplier<io.micrometer.core.instrument.MeterRegistry> getRegistry()
-
setRegistry
public void setRegistry(org.cache2k.config.CustomizationSupplier<io.micrometer.core.instrument.MeterRegistry> meterRegistry)
-
builder
public MicrometerConfig.Builder builder()
- Specified by:
builder
in interfaceorg.cache2k.config.ConfigBean<MicrometerConfig,MicrometerConfig.Builder>
- Specified by:
builder
in interfaceorg.cache2k.config.ConfigSection<MicrometerConfig,MicrometerConfig.Builder>
-
-