Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for bulkLoader (0.07 sec)

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

        final ExecutionException ee = new ExecutionException(cause);
    
        LoadingCache<Object, Object> cacheUnchecked =
            CacheBuilder.newBuilder().build(bulkLoader(exceptionLoader(uee)));
        LoadingCache<Object, Object> cacheChecked =
            CacheBuilder.newBuilder().build(bulkLoader(exceptionLoader(ee)));
    
        UncheckedExecutionException caughtUee =
            assertThrows(
    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. android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java

      /**
       * 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(final CacheLoader<K, V> loader) {
        checkNotNull(loader);
        return new CacheLoader<K, V>() {
          @Override
          public V load(K key) throws Exception {
            return loader.load(key);
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top