Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for InvalidCacheLoadException (0.16 sec)

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

        assertEquals(0, stats.hitCount());
    
        assertThrows(InvalidCacheLoadException.class, () -> cache.get(new Object()));
        stats = cache.stats();
        assertEquals(1, stats.missCount());
        assertEquals(0, stats.loadSuccessCount());
        assertEquals(1, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    
        assertThrows(InvalidCacheLoadException.class, () -> cache.getUnchecked(new Object()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/LocalCache.java

    import com.google.common.cache.AbstractCache.StatsCounter;
    import com.google.common.cache.CacheBuilder.NullListener;
    import com.google.common.cache.CacheBuilder.OneWeigher;
    import com.google.common.cache.CacheLoader.InvalidCacheLoadException;
    import com.google.common.cache.CacheLoader.UnsupportedLoadingOperationException;
    import com.google.common.collect.AbstractSequentialIterator;
    import com.google.common.collect.ImmutableMap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          throw new ExecutionError(e);
        }
    
        if (calculatedValue == null) {
          String message = loader + " returned null for key " + key + ".";
          throw new CacheLoader.InvalidCacheLoadException(message);
        }
        statsCounter.recordLoadSuccess(ticker.read() - startTime);
        return calculatedValue;
      }
    
      private V getIfPresent(Object key) {
        checkNotNull(key);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
Back to top