Class 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 Detail

      • MicrometerSupport

        public MicrometerSupport()
    • Method Detail

      • enable

        public static MicrometerSupport enable​(org.cache2k.Cache2kBuilder<?,​?> b)
      • disable

        public static void disable​(org.cache2k.Cache2kBuilder<?,​?> b)
      • doEnlist

        protected void doEnlist​(org.cache2k.config.CacheBuildContext<?,​?> ctx)
        Specified by:
        doEnlist in class org.cache2k.config.ToggleFeature