Package org.cache2k.extra.micrometer
Class MicrometerSupport
- java.lang.Object
-
- org.cache2k.config.ToggleFeature
-
- org.cache2k.extra.micrometer.MicrometerSupport
-
- All Implemented Interfaces:
org.cache2k.config.Feature
,org.cache2k.config.SingleFeature
,org.cache2k.config.WithSection<MicrometerConfig,MicrometerConfig.Builder>
public class MicrometerSupport extends org.cache2k.config.ToggleFeature implements org.cache2k.config.WithSection<MicrometerConfig,MicrometerConfig.Builder>
Automatically binds to the micrometer registry supplied by the configuration. The binding is omitted if monitoring is disabled.- Author:
- Jens Wilke
-
-
Constructor Summary
Constructors Constructor Description MicrometerSupport()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
disable(org.cache2k.Cache2kBuilder<?,?> b)
protected <K,V>
voiddoEnlist(org.cache2k.config.CacheBuildContext<K,V> ctx)
static MicrometerSupport
enable(org.cache2k.Cache2kBuilder<?,?> b)
Class<MicrometerConfig>
getConfigClass()
-
-
-
Method Detail
-
enable
public static MicrometerSupport enable(org.cache2k.Cache2kBuilder<?,?> b)
-
disable
public static void disable(org.cache2k.Cache2kBuilder<?,?> b)
-
doEnlist
protected <K,V> void doEnlist(org.cache2k.config.CacheBuildContext<K,V> ctx)
- Specified by:
doEnlist
in classorg.cache2k.config.ToggleFeature
-
getConfigClass
public Class<MicrometerConfig> getConfigClass()
- Specified by:
getConfigClass
in interfaceorg.cache2k.config.WithSection<MicrometerConfig,MicrometerConfig.Builder>
-
-