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 Summary
ConstructorDescriptionCaffeineCacheMetricsBinder
(io.micronaut.context.BeanProvider<io.micrometer.core.instrument.MeterRegistry> meterRegistryProvider) Default constructor. -
Method Summary
-
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
- Specified by:
onCreated
in interfaceio.micronaut.context.event.BeanCreatedEventListener<Cache<?>>
-