Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RemovalListener (0.17 sec)

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

        RemovalListener<Object, Object> removalListener =
            new RemovalListener<Object, Object>() {
              @Override
              public void onRemoval(RemovalNotification<Object, Object> notification) {
                notifications.add(notification);
              }
            };
        Cache<Object, Object> cache =
            CacheBuilder.newBuilder().removalListener(removalListener).build();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

          refreshExecutor.shutdown();
        }
      }
    
      public void testSetRemovalListener() {
        RemovalListener<Object, Object> testListener = TestingRemovalListeners.nullRemovalListener();
        LocalCache<Object, Object> map =
            makeLocalCache(createCacheBuilder().removalListener(testListener));
        assertSame(testListener, map.removalListener);
      }
    
      public void testSetTicker() {
        Ticker testTicker =
            new Ticker() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/LocalCache.java

      /**
       * A listener that is invoked when an entry is removed due to expiration or garbage collection of
       * soft/weak entries.
       */
      final RemovalListener<K, V> removalListener;
    
      /** Measures time in a testable way. */
      final Ticker ticker;
    
      /** Factory used to create new entries. */
      final EntryFactory entryFactory;
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
Back to top