Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 45 for CacheLoader (0.19 sec)

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

              createCacheBuilder()
                  .expireAfterWrite(100, MILLISECONDS)
                  .refreshAfterWrite(5, MILLISECONDS)
                  .ticker(ticker);
    
          CacheLoader<String, String> loader =
              new CacheLoader<String, String>() {
                @Override
                public String load(String key) {
                  return key + "Load";
                }
    
                @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

        builder.weigher(constantWeigher(42)).build(CacheLoader.from(Suppliers.ofInstance(null)));
      }
    
      @SuppressWarnings("ReturnValueIgnored")
      public void testMaximumWeight_withoutWeigher() {
        CacheBuilder<Object, Object> builder = CacheBuilder.from(parse("maximumWeight=9000"));
        assertThrows(
            IllegalStateException.class,
            () -> builder.build(CacheLoader.from(Suppliers.ofInstance(null))));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/NullCacheTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static java.util.concurrent.TimeUnit.SECONDS;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.cache.CacheLoader.InvalidCacheLoadException;
    import com.google.common.cache.TestingRemovalListeners.QueuingRemovalListener;
    import com.google.common.util.concurrent.UncheckedExecutionException;
    import junit.framework.TestCase;
    
    /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/Cache.java

       *   <li>consolidation of the loader logic to {@linkplain CacheBuilder#build(CacheLoader) a single
       *       authoritative location}
       *   <li>{@linkplain LoadingCache#refresh refreshing of entries}, including {@linkplain
       *       CacheBuilder#refreshAfterWrite automated refreshing}
       *   <li>{@linkplain LoadingCache#getAll bulk loading requests}, including {@linkplain
       *       CacheLoader#loadAll bulk loading implementations}
       * </ul>
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 7.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

     * strengths.
     *
     * @author mike nonemacher
     */
    public class CacheReferencesTest extends TestCase {
    
      private static final CacheLoader<Key, String> KEY_TO_STRING_LOADER =
          new CacheLoader<Key, String>() {
            @Override
            public String load(Key key) {
              return key.toString();
            }
          };
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

      private final CacheLoader<? super K, V> loader;
      private final RemovalListener<? super K, ? super V> removalListener;
      private final StatsCounter statsCounter;
      private final Ticker ticker;
      private final long expireAfterWrite;
      private final long expireAfterAccess;
    
      LocalCache(CacheBuilder<? super K, ? super V> builder, CacheLoader<? super K, V> loader) {
        this.loader = loader;
    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)
  7. android/guava/src/com/google/common/cache/CacheBuilder.java

       * of refreshes are specified in {@link LoadingCache#refresh}, and are performed by calling {@link
       * CacheLoader#reload}.
       *
       * <p>As the default implementation of {@link CacheLoader#reload} is synchronous, it is
       * recommended that users of this method override {@link CacheLoader#reload} with an asynchronous
       * implementation; otherwise refreshes will be performed during unrelated cache read and write
    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. src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java

    import org.codelibs.fess.taglib.FessFunctions;
    import org.codelibs.fess.util.ComponentUtil;
    import org.dbflute.optional.OptionalThing;
    
    import com.google.common.cache.CacheBuilder;
    import com.google.common.cache.CacheLoader;
    import com.google.common.cache.LoadingCache;
    
    /**
     * @author shinsuke
     *
     */
    public class CrawlerStatsHelper {
        private static final Logger logger = LogManager.getLogger(CrawlerStatsHelper.class);
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/package-info.java

     *
     * <p>The core interface used to represent caches is {@link Cache}. In-memory caches can be
     * configured and created using {@link CacheBuilder}, with cache entries being loaded by {@link
     * CacheLoader}. Statistics about cache performance are exposed using {@link CacheStats}.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/CachesExplained">caches</a>.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Jun 23 19:57:03 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/package-info.java

     *
     * <p>The core interface used to represent caches is {@link Cache}. In-memory caches can be
     * configured and created using {@link CacheBuilder}, with cache entries being loaded by {@link
     * CacheLoader}. Statistics about cache performance are exposed using {@link CacheStats}.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/CachesExplained">caches</a>.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Jun 23 19:57:03 GMT 2023
    - 1.5K bytes
    - Viewed (0)
Back to top