Class CacheInfo


  • public class CacheInfo
    extends java.lang.Object
    Simplified version of Guava's CacheStats (and abstracting away from Guava cache implementation)
    • Constructor Summary

      Constructors 
      Constructor Description
      CacheInfo​(int cacheSize, long requests, long hits, long misses, double hitRate)  
      CacheInfo​(int cacheSize, org.apache.jena.ext.com.google.common.cache.CacheStats stats)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • requests

        public final long requests
      • hits

        public final long hits
      • misses

        public final long misses
      • hitRate

        public final double hitRate
      • cacheSize

        public final int cacheSize
    • Constructor Detail

      • CacheInfo

        public CacheInfo​(int cacheSize,
                         org.apache.jena.ext.com.google.common.cache.CacheStats stats)
      • CacheInfo

        public CacheInfo​(int cacheSize,
                         long requests,
                         long hits,
                         long misses,
                         double hitRate)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object