Class CaffeineCacheStats

java.lang.Object
com.palantir.tritium.metrics.caffeine.CaffeineCacheStats

public final class CaffeineCacheStats extends Object
  • Method Details

    • registerCache

      @Deprecated public static void registerCache(com.codahale.metrics.MetricRegistry registry, com.github.benmanes.caffeine.cache.Cache<?,?> cache, String name)
      Register specified cache with the given metric registry.

      Callers should ensure that they have enabled stats recording Caffeine.newBuilder().recordStats() otherwise there are no cache metrics to register.

      Parameters:
      registry - metric registry
      cache - cache to instrument
      name - cache name
    • registerCache

      @Deprecated public static void registerCache(com.palantir.tritium.metrics.registry.TaggedMetricRegistry registry, com.github.benmanes.caffeine.cache.Cache<?,?> cache, @Safe @Safe String name)
      Register specified cache with the given metric registry.

      Callers should ensure that they have enabled stats recording Caffeine.newBuilder().recordStats() otherwise there are no cache metrics to register.

      Parameters:
      registry - metric registry
      cache - cache to instrument
      name - cache name