Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for wasEvicted (0.31 sec)

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

            new RemovalListener<Integer, AtomicInteger>() {
              @Override
              public void onRemoval(RemovalNotification<Integer, AtomicInteger> notification) {
                if (notification.wasEvicted()) {
                  evictionCount.incrementAndGet();
                  totalSum.addAndGet(notification.getValue().get());
                }
              }
            };
    
        CacheLoader<Integer, AtomicInteger> loader =
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/LocalCache.java

        // eviction
    
        @GuardedBy("this")
        void enqueueNotification(
            @Nullable K key, int hash, @Nullable V value, int weight, RemovalCause cause) {
          totalWeight -= weight;
          if (cause.wasEvicted()) {
            statsCounter.recordEviction();
          }
          if (map.removalNotificationQueue != DISCARDING_QUEUE) {
            RemovalNotification<K, V> notification = RemovalNotification.create(key, value, cause);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 19:35:11 UTC 2025
    - 148.9K bytes
    - Viewed (0)
Back to top