io.quarkus.cache.runtime.caffeine.metrics.NoOpMetricsInitializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-cache Show documentation
Show all versions of quarkus-cache Show documentation
Enable application data caching in CDI beans
package io.quarkus.cache.runtime.caffeine.metrics;
import org.jboss.logging.Logger;
import com.github.benmanes.caffeine.cache.AsyncCache;
/**
* 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.
*/
public class NoOpMetricsInitializer implements MetricsInitializer {
private static final Logger LOGGER = Logger.getLogger(NoOpMetricsInitializer.class);
@Override
public boolean metricsEnabled() {
return false;
}
@Override
public void recordMetrics(AsyncCache
© 2015 - 2025 Weber Informatics LLC | Privacy Policy