Class CaffeineCacheMetricsBinder

java.lang.Object
io.micronaut.cache.caffeine.metrics.CaffeineCacheMetricsBinder
All Implemented Interfaces:
io.micronaut.context.event.BeanCreatedEventListener<Cache<?>>, EventListener

@RequiresMetrics @Singleton @Requires(property="micronaut.metrics.binders.cache.enabled", notEquals="false") public class CaffeineCacheMetricsBinder extends Object implements io.micronaut.context.event.BeanCreatedEventListener<Cache<?>>
A cache Metrics binder for Caffeine.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • CaffeineCacheMetricsBinder

      public CaffeineCacheMetricsBinder(io.micronaut.context.BeanProvider<io.micrometer.core.instrument.MeterRegistry> meterRegistryProvider)
      Default constructor.
      Parameters:
      meterRegistryProvider - The meter registry provider
  • Method Details

    • onCreated

      public Cache<?> onCreated(io.micronaut.context.event.BeanCreatedEvent<Cache<?>> event)
      Specified by:
      onCreated in interface io.micronaut.context.event.BeanCreatedEventListener<Cache<?>>