Uses of Class
com.google.common.cache.CacheLoader
-
Packages that use CacheLoader Package Description com.google.common.cache This package contains caching utilities. -
-
Uses of CacheLoader in com.google.common.cache
Subclasses of CacheLoader in com.google.common.cache Modifier and Type Class Description private static classCacheLoader.FunctionToCacheLoader<K,V>private static classCacheLoader.SupplierToCacheLoader<V>Fields in com.google.common.cache declared as CacheLoader Modifier and Type Field Description (package private) CacheLoader<? super K,V>LocalCache. defaultLoaderThe default cache loader to use on loading operations.(package private) CacheLoader<? super K,V>LocalCache.ManualSerializationProxy. loaderMethods in com.google.common.cache that return CacheLoader Modifier and Type Method Description static <K,V>
CacheLoader<K,V>CacheLoader. asyncReloading(CacheLoader<K,V> loader, java.util.concurrent.Executor executor)static <K,V>
CacheLoader<K,V>CacheLoader. from(Function<K,V> function)Returns a cache loader that usesfunctionto load keys, without supporting either reloading or bulk loading.static <V> CacheLoader<java.lang.Object,V>CacheLoader. from(Supplier<V> supplier)Returns a cache loader based on an existing supplier instance.Methods in com.google.common.cache with parameters of type CacheLoader Modifier and Type Method Description static <K,V>
CacheLoader<K,V>CacheLoader. asyncReloading(CacheLoader<K,V> loader, java.util.concurrent.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)(package private) java.util.Map<K,V>LocalCache. loadAll(java.util.Set<? extends K> keys, 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)ListenableFuture<V>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 CacheLoader Constructor Description 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.LocalLoadingCache(CacheBuilder<? super K,? super V> builder, CacheLoader<? super K,V> loader)ManualSerializationProxy(LocalCache.Strength keyStrength, LocalCache.Strength valueStrength, Equivalence<java.lang.Object> keyEquivalence, Equivalence<java.lang.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)
-