Class CacheStatistics

  • All Implemented Interfaces:
    Statistics

    public class CacheStatistics
    extends Object
    implements Statistics
    Represents instrumentation data for caches.
    Since:
    5.10
    • Constructor Detail

      • CacheStatistics

        public CacheStatistics​(String name,
                               List<String> tags,
                               String type,
                               long hits,
                               long misses,
                               double loadTime,
                               Map<String,​?> otherStats,
                               long getTime,
                               long putTime)
    • Method Detail

      • type

        public String type()
        Returns:
        type of the cache.
      • hits

        public long hits()
        Returns:
        number of cache hits
      • misses

        public long misses()
        Returns:
        number of cache misises
      • loadTime

        public double loadTime()
        Returns:
        mean time spent on calls to loaders / suppliers that provides value in case of miss. In nanoseconds.
      • getTime

        public long getTime()
        Returns:
        mean time spent on cache get request. In nanoseconds.
      • putTime

        public long putTime()
        Returns:
        mean time spent on cache put request. In nanoseconds.