Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for evictionCount (0.05 sec)

  1. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(stats.loadCount()).isEqualTo(1);
        long totalLoadTime = stats.totalLoadTime();
        assertThat(totalLoadTime).isAtLeast(0);
        assertThat(stats.averageLoadPenalty()).isAtLeast(0.0);
        assertThat(stats.evictionCount()).isEqualTo(0);
    
        cache.getUnchecked(one);
        stats = cache.stats();
        assertThat(stats.requestCount()).isEqualTo(2);
        assertThat(stats.hitCount()).isEqualTo(1);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/AbstractCache.java

          loadSuccessCount.add(otherStats.loadSuccessCount());
          loadExceptionCount.add(otherStats.loadExceptionCount());
          totalLoadTime.add(otherStats.totalLoadTime());
          evictionCount.add(otherStats.evictionCount());
        }
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/CacheStats.java

            saturatedAdd(totalLoadTime, other.totalLoadTime),
            saturatedAdd(evictionCount, other.evictionCount));
      }
    
      @Override
      public int hashCode() {
        return Objects.hash(
            hitCount, missCount, loadSuccessCount, loadExceptionCount, totalLoadTime, evictionCount);
      }
    
      @Override
      public boolean equals(@Nullable Object object) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/CacheStats.java

            saturatedAdd(totalLoadTime, other.totalLoadTime),
            saturatedAdd(evictionCount, other.evictionCount));
      }
    
      @Override
      public int hashCode() {
        return Objects.hash(
            hitCount, missCount, loadSuccessCount, loadExceptionCount, totalLoadTime, evictionCount);
      }
    
      @Override
      public boolean equals(@Nullable Object object) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

        assertThat(stats.loadCount()).isEqualTo(0);
        assertThat(stats.totalLoadTime()).isEqualTo(0);
        assertThat(stats.averageLoadPenalty()).isEqualTo(0.0);
        assertThat(stats.evictionCount()).isEqualTo(0);
      }
    
      public void testSingleSimpleStats() {
        StatsCounter counter = new SimpleStatsCounter();
        for (int i = 0; i < 11; i++) {
          counter.recordHits(1);
        }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/AbstractCache.java

          loadSuccessCount.add(otherStats.loadSuccessCount());
          loadExceptionCount.add(otherStats.loadExceptionCount());
          totalLoadTime.add(otherStats.totalLoadTime());
          evictionCount.add(otherStats.evictionCount());
        }
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

            .that(removalListener.getCount())
            .isEqualTo(21);
      }
    
      public void testRemovalListener_expireAfterWrite() {
        FakeTicker ticker = new FakeTicker();
        AtomicInteger evictionCount = new AtomicInteger();
        AtomicInteger applyCount = new AtomicInteger();
        AtomicInteger totalSum = new AtomicInteger();
    
        RemovalListener<Integer, AtomicInteger> removalListener =
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

          assertWithMessage("Invalid removal notification")
              .that(notification.getValue())
              .isEqualTo(notification.getKey());
        }
    
        CacheStats stats = cache.stats();
        assertThat(stats.evictionCount()).isEqualTo(removalListener.size());
        assertThat(stats.loadSuccessCount()).isEqualTo(computeCount.get());
        assertThat(stats.loadExceptionCount()).isEqualTo(exceptionCount.get() + computeNullCount.get());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 25.4K bytes
    - Viewed (0)
Back to top