Uses of Interface
com.google.common.cache.LoadingCache
Packages that use LoadingCache
Package
Description
Discouraged (in favor of Caffeine) caching utilities.
Discouraged in favor of dependency injection and
concurrency frameworks, EventBus allows publish-subscribe-style communication.
-
Uses of LoadingCache in com.google.common.cache
Classes in com.google.common.cache that implement LoadingCacheModifier and TypeClassDescriptionclass
AbstractLoadingCache<K,
V> This class provides a skeletal implementation of theCache
interface to minimize the effort required to implement this interface.class
A cache which forwards all its method calls to another cache.static class
A simplified version ofForwardingLoadingCache
where subclasses can pass in an already constructedLoadingCache
as the delegate.(package private) static final class
Serializes the configuration of a LocalCache, reconstituting it as an LoadingCache using CacheBuilder upon deserialization.(package private) static class
Fields in com.google.common.cache declared as LoadingCacheModifier and TypeFieldDescription(package private) LoadingCache
<K, V> LocalCache.LoadingSerializationProxy.autoDelegate
private final LoadingCache
<K, V> ForwardingLoadingCache.SimpleForwardingLoadingCache.delegate
Methods in com.google.common.cache that return LoadingCacheModifier and TypeMethodDescription<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
.protected abstract LoadingCache
<K, V> ForwardingLoadingCache.delegate()
protected final LoadingCache
<K, V> ForwardingLoadingCache.SimpleForwardingLoadingCache.delegate()
Constructors in com.google.common.cache with parameters of type LoadingCache -
Uses of LoadingCache in com.google.common.eventbus
Fields in com.google.common.eventbus declared as LoadingCacheModifier and TypeFieldDescriptionprivate static final LoadingCache
<Class<?>, ImmutableSet<Class<?>>> SubscriberRegistry.flattenHierarchyCache
Global cache of classes to their flattened hierarchy of supertypes.private static final LoadingCache
<Class<?>, ImmutableList<Method>> SubscriberRegistry.subscriberMethodsCache
A thread-safe cache that contains the mapping from each class to all methods in that class and all super-classes, that are annotated with@Subscribe
.