Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for drainRecencyQueues (0.18 sec)

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

        CacheTesting.drainRecencyQueues(cache);
        ticker.advance(2, MILLISECONDS);
        assertThat(keySet).containsExactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // 3 expires
        ticker.advance(1, MILLISECONDS);
        assertThat(keySet).containsExactly(4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // reorder
        getAll(cache, asList(5, 7, 9));
        CacheTesting.drainRecencyQueues(cache);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 18.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        CacheTesting.drainRecencyQueues(cache);
        ticker.advance(2, MILLISECONDS);
        assertThat(keySet).containsExactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // 3 expires
        ticker.advance(1, MILLISECONDS);
        assertThat(keySet).containsExactly(4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // reorder
        getAll(cache, asList(5, 7, 9));
        CacheTesting.drainRecencyQueues(cache);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 18.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheTesting.java

       * without throwing an exception.
       */
      static boolean hasLocalCache(Cache<?, ?> cache) {
        return (checkNotNull(cache) instanceof LocalLoadingCache);
      }
    
      static void drainRecencyQueues(Cache<?, ?> cache) {
        if (hasLocalCache(cache)) {
          LocalCache<?, ?> map = toLocalCache(cache);
          for (Segment<?, ?> segment : map.segments) {
            drainRecencyQueue(segment);
          }
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheTesting.java

       * without throwing an exception.
       */
      static boolean hasLocalCache(Cache<?, ?> cache) {
        return (checkNotNull(cache) instanceof LocalLoadingCache);
      }
    
      static void drainRecencyQueues(Cache<?, ?> cache) {
        if (hasLocalCache(cache)) {
          LocalCache<?, ?> map = toLocalCache(cache);
          for (Segment<?, ?> segment : map.segments) {
            drainRecencyQueue(segment);
          }
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
Back to top