@RequiresMetrics
@Singleton
@Requires(property="micronaut.metrics.binders.cache.enabled",
notEquals="false")
public class CaffeineCacheMetricsBinder
extends Object
implements io.micronaut.context.event.BeanCreatedEventListener<Cache<?>>
| Constructor and Description |
|---|
CaffeineCacheMetricsBinder(io.micronaut.context.BeanProvider<io.micrometer.core.instrument.MeterRegistry> meterRegistryProvider)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Cache<?> |
onCreated(io.micronaut.context.event.BeanCreatedEvent<Cache<?>> event) |