Class CacheStatisticsChangeTracker


  • public final class CacheStatisticsChangeTracker
    extends Object
    Helper to check the changes in cache statistics. This is helpful because hits and misses aren't reset when the cache is flushed. (that may or may not be a bug).
    • Constructor Detail

      • CacheStatisticsChangeTracker

        public CacheStatisticsChangeTracker​(CacheStatistics initialStats)
    • Method Detail

      • assertChanges

        public void assertChanges​(CacheStatistics newStats,
                                  int expectedMoreHits,
                                  int expectedMoreMisses)