Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for expired (0.18 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. android/guava/src/com/google/common/cache/ReferenceEntry.java

     *
     * <p>Valid:
     *
     * <ul>
     *   <li>Live: valid key/value are set
     *   <li>Loading: loading is pending
     * </ul>
     *
     * <p>Invalid:
     *
     * <ul>
     *   <li>Expired: time expired (key/value may still be set)
     *   <li>Collected: key/value was partially collected, but not yet cleaned up
     *   <li>Unset: marked as unset, awaiting cleanup or reuse
     * </ul>
     */
    @GwtIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 3.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/ReferenceEntry.java

     *
     * <p>Valid:
     *
     * <ul>
     *   <li>Live: valid key/value are set
     *   <li>Loading: loading is pending
     * </ul>
     *
     * <p>Invalid:
     *
     * <ul>
     *   <li>Expired: time expired (key/value may still be set)
     *   <li>Collected: key/value was partially collected, but not yet cleaned up
     *   <li>Unset: marked as unset, awaiting cleanup or reuse
     * </ul>
     */
    @GwtIncompatible
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 3.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. android/guava/src/com/google/common/cache/RemovalCause.java

          return true;
        }
      },
    
      /**
       * The entry's expiration timestamp has passed. This can occur when using {@link
       * CacheBuilder#expireAfterWrite} or {@link CacheBuilder#expireAfterAccess}.
       */
      EXPIRED {
        @Override
        boolean wasEvicted() {
          return true;
        }
      },
    
      /**
       * The entry was evicted due to size constraints. This can occur when using {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 2.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/RemovalCause.java

          return true;
        }
      },
    
      /**
       * The entry's expiration timestamp has passed. This can occur when using {@link
       * CacheBuilder#expireAfterWrite} or {@link CacheBuilder#expireAfterAccess}.
       */
      EXPIRED {
        @Override
        boolean wasEvicted() {
          return true;
        }
      },
    
      /**
       * The entry was evicted due to size constraints. This can occur when using {@link
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 2.7K bytes
    - Viewed (0)
  8. 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)
  9. 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 Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LocalCache.java

          ReferenceEntry<K, V> e;
          while ((e = writeQueue.peek()) != null && map.isExpired(e, now)) {
            if (!removeEntry(e, e.getHash(), RemovalCause.EXPIRED)) {
              throw new AssertionError();
            }
          }
          while ((e = accessQueue.peek()) != null && map.isExpired(e, now)) {
            if (!removeEntry(e, e.getHash(), RemovalCause.EXPIRED)) {
              throw new AssertionError();
            }
          }
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
Back to top