Home
last modified time | relevance | path

Searched refs:evictionCount (Results 1 – 7 of 7) sorted by relevance

/external/guava/guava/src/com/google/common/cache/
DCacheStats.java70 private final long evictionCount; field in CacheStats
79 long loadExceptionCount, long totalLoadTime, long evictionCount) { in CacheStats() argument
85 checkArgument(evictionCount >= 0); in CacheStats()
92 this.evictionCount = evictionCount; in CacheStats()
211 public long evictionCount() { in evictionCount() method in CacheStats
212 return evictionCount; in evictionCount()
227 Math.max(0, evictionCount - other.evictionCount)); in minus()
243 evictionCount + other.evictionCount); in plus()
249 totalLoadTime, evictionCount); in hashCode()
261 && evictionCount == other.evictionCount; in equals()
[all …]
DAbstractCache.java214 private final LongAddable evictionCount = LongAddables.create(); field in AbstractCache.SimpleStatsCounter
251 evictionCount.increment(); in recordEviction()
262 evictionCount.sum()); in snapshot()
275 evictionCount.add(otherStats.evictionCount()); in incrementBy()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheStatsTest.java41 assertEquals(0, stats.evictionCount()); in testEmpty()
57 assertEquals(27, stats.evictionCount()); in testSingle()
76 assertEquals(4, diff.evictionCount()); in testMinus()
97 assertEquals(44, sum.evictionCount()); in testPlus()
DLocalLoadingCacheTest.java96 assertEquals(0, stats.evictionCount()); in testStats()
106 assertEquals(0, stats.evictionCount()); in testStats()
120 assertEquals(0, stats.evictionCount()); in testStats()
134 assertEquals(1, stats.evictionCount()); in testStats()
DAbstractCacheTest.java113 assertEquals(0, stats.evictionCount()); in testEmptySimpleStats()
146 assertEquals(27, stats.evictionCount()); in testSingleSimpleStats()
DCacheExpirationTest.java173 final AtomicInteger evictionCount = new AtomicInteger(); in testRemovalListener_expireAfterWrite() local
182 evictionCount.incrementAndGet(); in testRemovalListener_expireAfterWrite()
207 assertEquals(evictionCount.get() + 1, applyCount.get()); in testRemovalListener_expireAfterWrite()
DCacheBuilderTest.java591 assertEquals(removalListener.size(), stats.evictionCount()); in testRemovalNotification_get_basher()