Class NoOpMetricsInitializer
- java.lang.Object
-
- io.quarkus.cache.runtime.caffeine.metrics.NoOpMetricsInitializer
-
- All Implemented Interfaces:
MetricsInitializer
public class NoOpMetricsInitializer extends Object implements MetricsInitializer
An instance of this class is created during the instantiation of the Caffeine caches when the application does not depend on any quarkus-micrometer-registry-* extension. It is required to make the micrometer-core dependency optional.
-
-
Constructor Summary
Constructors Constructor Description NoOpMetricsInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmetricsEnabled()voidrecordMetrics(com.github.benmanes.caffeine.cache.AsyncCache<Object,Object> cache, String cacheName)
-
-
-
Method Detail
-
metricsEnabled
public boolean metricsEnabled()
- Specified by:
metricsEnabledin interfaceMetricsInitializer
-
recordMetrics
public void recordMetrics(com.github.benmanes.caffeine.cache.AsyncCache<Object,Object> cache, String cacheName)
- Specified by:
recordMetricsin interfaceMetricsInitializer
-
-