Uses of Class
com.google.common.cache.CacheLoader
Packages that use CacheLoader
-
Uses of CacheLoader in com.google.common.cache
Subclasses of CacheLoader in com.google.common.cacheModifier and TypeClassDescriptionprivate static final classprivate static final classFields in com.google.common.cache declared as CacheLoaderModifier and TypeFieldDescription(package private) final CacheLoader<? super K,V> LocalCache.defaultLoaderThe default cache loader to use on loading operations.(package private) final CacheLoader<? super K,V> LocalCache.ManualSerializationProxy.loaderMethods in com.google.common.cache that return CacheLoaderModifier and TypeMethodDescriptionstatic <K,V> CacheLoader<K, V> CacheLoader.asyncReloading(CacheLoader<K, V> loader, Executor executor) static <K,V> CacheLoader<K, V> Returns a cache loader that usesfunctionto load keys, without supporting either reloading or bulk loading.static <V> CacheLoader<Object,V> Returns a cache loader based on an existing supplier instance.Methods in com.google.common.cache with parameters of type CacheLoaderModifier and TypeMethodDescriptionstatic <K,V> CacheLoader<K, V> CacheLoader.asyncReloading(CacheLoader<K, V> loader, Executor executor) <K1 extends K,V1 extends V>
LoadingCache<K1,V1> CacheBuilder.build(CacheLoader<? super K1, V1> loader) Builds a cache, which either returns an already-loaded value for a given key or atomically computes or retrieves it using the suppliedCacheLoader.(package private) VLocalCache.get(K key, CacheLoader<? super K, V> loader) (package private) VLocalCache.Segment.get(K key, int hash, CacheLoader<? super K, V> loader) Returns the result of callingloadAll(java.lang.Iterable<? extends K>), or null ifloaderdoesn't implementloadAll.(package private) ListenableFuture<V>LocalCache.Segment.loadAsync(K key, int hash, LocalCache.LoadingValueReference<K, V> loadingValueReference, CacheLoader<? super K, V> loader) LocalCache.LoadingValueReference.loadFuture(K key, CacheLoader<? super K, V> loader) (package private) VLocalCache.Segment.loadSync(K key, int hash, LocalCache.LoadingValueReference<K, V> loadingValueReference, CacheLoader<? super K, V> loader) (package private) VLocalCache.Segment.lockedGetOrLoad(K key, int hash, CacheLoader<? super K, V> loader) (package private) VLocalCache.Segment.refresh(K key, int hash, CacheLoader<? super K, V> loader, boolean checkTime) Refreshes the value associated withkey, unless another thread is already doing so.(package private) VLocalCache.Segment.scheduleRefresh(ReferenceEntry<K, V> entry, K key, int hash, V oldValue, long now, CacheLoader<? super K, V> loader) Constructors in com.google.common.cache with parameters of type CacheLoaderModifierConstructorDescription(package private)LocalCache(CacheBuilder<? super K, ? super V> builder, CacheLoader<? super K, V> loader) Creates a new, empty map with the specified strategy, initial capacity and concurrency level.(package private)LocalLoadingCache(CacheBuilder<? super K, ? super V> builder, CacheLoader<? super K, V> loader) privateManualSerializationProxy(LocalCache.Strength keyStrength, LocalCache.Strength valueStrength, Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence, long expireAfterWriteNanos, long expireAfterAccessNanos, long maxWeight, Weigher<K, V> weigher, int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener, Ticker ticker, CacheLoader<? super K, V> loader)