Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getReloadCount (0.08 sec)

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

          assertEquals(expectedReloads, loader.getReloadCount());
          ticker.advance(1, MILLISECONDS);
        }
    
        assertEquals(Integer.valueOf(0), cache.getUnchecked(0));
        assertEquals(Integer.valueOf(1), cache.getUnchecked(1));
        assertEquals(Integer.valueOf(2), cache.getUnchecked(2));
        assertEquals(expectedLoads, loader.getLoadCount());
        assertEquals(expectedReloads, loader.getReloadCount());
    
        // refresh 0
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java

       * An {@code Integer} loader that returns the key for {@code load} requests, and increments the
       * old value on {@code reload} requests. The load counts are accessible via {@link #getLoadCount}
       * and {@link #getReloadCount}.
       */
      static class IncrementingLoader extends CacheLoader<Integer, Integer> {
        private final AtomicInteger countLoad = new AtomicInteger();
        private final AtomicInteger countReload = new AtomicInteger();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top