Class DefaultCacheStatistics

    • Method Detail

      • getSize

        public Long getSize()
        Description copied from interface: CacheStatistics
        Return the size of the cache or null if that information is not available.
        Specified by:
        getSize in interface CacheStatistics
        Returns:
        the size of the cache or null
      • getHitRatio

        public Double getHitRatio()
        Description copied from interface: CacheStatistics
        Return the ratio of cache requests which were hits as a value between 0 and 1 where 0 means that the hit ratio is 0% and 1 means it is 100%.

        This may also return null if the cache-specifics statistics does not provide the necessary information

        Specified by:
        getHitRatio in interface CacheStatistics
        Returns:
        the hit ratio or null
      • getMissRatio

        public Double getMissRatio()
        Description copied from interface: CacheStatistics
        Return the ratio of cache requests which were misses as value between 0 and 1 where 0 means that the miss ratio is 0% and 1 means it is 100%.

        This may also return null if the cache-specifics statistics does not provide the necessary information

        Specified by:
        getMissRatio in interface CacheStatistics
        Returns:
        the miss ratio or null