Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for expired (0.19 sec)

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

        }
    
        // wait for entries to expire, but don't call expireEntries
        ticker.advance(EXPIRING_TIME * 10, MILLISECONDS);
    
        // add a single unexpired entry
        cache.getUnchecked(KEY_PREFIX + 11);
    
        // collections views shouldn't expose expired entries
        assertEquals(1, Iterators.size(cache.asMap().entrySet().iterator()));
    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

        }
    
        // wait for entries to expire, but don't call expireEntries
        ticker.advance(EXPIRING_TIME * 10, MILLISECONDS);
    
        // add a single unexpired entry
        cache.getUnchecked(KEY_PREFIX + 11);
    
        // collections views shouldn't expose expired entries
        assertEquals(1, Iterators.size(cache.asMap().entrySet().iterator()));
    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. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          @SuppressWarnings("unchecked")
          K castKey = (K) key;
    
          if (!isExpired(stamped)) {
            alertListenerIfPresent(castKey, value, RemovalCause.EXPLICIT);
            return value;
          }
    
          alertListenerIfPresent(castKey, value, RemovalCause.EXPIRED);
        }
        return null;
      }
    
      @Override
      public void putAll(Map<? extends K, ? extends V> m) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       * specified {@code timeout}, or returns {@code false} immediately (without waiting) if the permit
       * would not have been granted before the timeout expired.
       *
       * <p>This method is equivalent to {@code tryAcquire(1, timeout, unit)}.
       *
       * @param timeout the maximum time to wait for the permit. Negative values are treated as zero.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/SuppliersTest.java

        // it still should only have executed once due to memoization
        assertEquals(1, countingSupplier.calls);
    
        Thread.sleep(150);
    
        assertEquals(20, (int) memoizedSupplier.get());
        // old value expired
        assertEquals(2, countingSupplier.calls);
    
        assertEquals(20, (int) memoizedSupplier.get());
        // it still should only have executed twice due to memoization
        assertEquals(2, countingSupplier.calls);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        // it still should only have executed once due to memoization
        assertEquals(1, countingSupplier.calls);
    
        Thread.sleep(150);
    
        assertEquals(20, (int) memoizedSupplier.get());
        // old value expired
        assertEquals(2, countingSupplier.calls);
    
        assertEquals(20, (int) memoizedSupplier.get());
        // it still should only have executed twice due to memoization
        assertEquals(2, countingSupplier.calls);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/CacheBuilder.java

       * useful in testing, or to disable caching temporarily without a code change.
       *
       * <p>Expired entries may be counted in {@link Cache#size}, but will never be visible to read or
       * write operations. Expired entries are cleaned up as part of the routine maintenance described
       * in the class javadoc.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

            new RemovalListener<Integer, Integer>() {
              @Override
              public void onRemoval(RemovalNotification<Integer, Integer> notification) {
                switch (notification.getCause()) {
                  case EXPIRED:
                    stats[0]++;
                    break;
                  case EXPLICIT:
                    stats[1]++;
                    break;
                  case REPLACED:
                    stats[2]++;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 15.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

            new RemovalListener<Integer, Integer>() {
              @Override
              public void onRemoval(RemovalNotification<Integer, Integer> notification) {
                switch (notification.getCause()) {
                  case EXPIRED:
                    stats[0]++;
                    break;
                  case EXPLICIT:
                    stats[1]++;
                    break;
                  case REPLACED:
                    stats[2]++;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 15K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

      }
    
      /**
       * Returns a future that delegates to this future but will finish early (via a {@link
       * TimeoutException} wrapped in an {@link ExecutionException}) if the specified timeout expires.
       * If the timeout expires, not only will the output future finish, but also the input future
       * ({@code this}) will be cancelled and interrupted.
       *
       * @param timeout when to time out the future
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 11 19:08:44 GMT 2023
    - 18.7K bytes
    - Viewed (0)
Back to top