Class CacheInfo

java.lang.Object
org.apache.jena.atlas.lib.cache.CacheInfo

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

    Fields
    Modifier and Type
    Field
    Description
    final int
     
    final double
     
    final long
     
    final long
     
    final long
     
  • 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

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

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

    • 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 Details

    • 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 Details