Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for loadAll (0.08 sec)

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

                reloadCount.incrementAndGet();
                return immediateFuture(new Object());
              }
    
              @Override
              public Map<Object, Object> loadAll(Iterable<?> keys) {
                loadAllCount.incrementAndGet();
                return ImmutableMap.of();
              }
            };
    
        assertThat(loadCount.get()).isEqualTo(0);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/CacheLoader.java

            executor.execute(task);
            return task;
          }
    
          @Override
          public Map<K, V> loadAll(Iterable<? extends K> keys) throws Exception {
            return loader.loadAll(keys);
          }
        };
      }
    
      private static final class SupplierToCacheLoader<V> extends CacheLoader<Object, V>
          implements Serializable {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheLoaderTest.java

                reloadCount.incrementAndGet();
                return immediateFuture(new Object());
              }
    
              @Override
              public Map<Object, Object> loadAll(Iterable<?> keys) {
                loadAllCount.incrementAndGet();
                return ImmutableMap.of();
              }
            };
    
        assertThat(loadCount.get()).isEqualTo(0);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/LoadingCache.java

       * <p>Caches loaded by a {@link CacheLoader} will issue a single request to {@link
       * CacheLoader#loadAll} for all keys which are not already present in the cache. All entries
       * returned by {@link CacheLoader#loadAll} will be stored in the cache, over-writing any
       * previously cached values. This method will throw an exception if {@link CacheLoader#loadAll}
       * returns {@code null}, returns a map containing null keys or values, or fails to return an entry
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java

     *
     * @author mike nonemacher
     */
    @GwtCompatible
    @NullUnmarked
    final class TestingCacheLoaders {
    
      /**
       * Returns a {@link CacheLoader} that implements a naive {@link CacheLoader#loadAll}, delegating
       * {@link CacheLoader#load} calls to {@code loader}.
       */
      static <K, V> CacheLoader<K, V> bulkLoader(CacheLoader<K, V> loader) {
        checkNotNull(loader);
        return new CacheLoader<K, V>() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

              @Override
              public Object load(Object key) throws Exception {
                return new Object();
              }
    
              @Override
              public Map<Object, Object> loadAll(Iterable<?> keys) throws Exception {
                Map<Object, Object> result = new HashMap<>();
                for (Object key : keys) {
                  Object value = new Object();
                  result.put(key, value);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 91.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

              @Override
              public Object load(Object key) throws Exception {
                return new Object();
              }
    
              @Override
              public Map<Object, Object> loadAll(Iterable<?> keys) throws Exception {
                Map<Object, Object> result = new HashMap<>();
                for (Object key : keys) {
                  Object value = new Object();
                  result.put(key, value);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 91.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/Cache.java

       *       CacheBuilder#refreshAfterWrite automated refreshing}
       *   <li>{@linkplain LoadingCache#getAll bulk loading requests}, including {@linkplain
       *       CacheLoader#loadAll bulk loading implementations}
       * </ul>
       *
       * <p><b>Warning:</b> For any given key, every {@code loader} used with it should compute the same
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/LocalCache.java

        }
      }
    
      /**
       * Returns the result of calling {@link CacheLoader#loadAll}, or null if {@code loader} doesn't
       * implement {@code loadAll}.
       */
      @Nullable Map<K, V> loadAll(Set<? extends K> keys, CacheLoader<? super K, V> loader)
          throws ExecutionException {
        checkNotNull(loader);
        checkNotNull(keys);
        Stopwatch stopwatch = Stopwatch.createStarted();
        Map<K, V> result;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 19:35:11 UTC 2025
    - 148.9K bytes
    - Viewed (0)
Back to top