List of usage examples for com.google.common.cache LoadingCache interface-usage
From source file com.axemblr.provisionr.amazon.core.ProviderClientCache.java
/** * Marker interface only used to hide generic type arguments * from Apache Aries and make Blueprint DI work as expected */ public interface ProviderClientCache extends LoadingCache<Provider, AmazonEC2> { }
From source file name.martingeisse.common.util.PassthroughCache.java
/**
* A {@link LoadingCache} implementation that does not actually cache
* any values, but just passes requests to the {@link CacheLoader}.
*
* @param <K> the cache key type
* @param <V> the cache value type
From source file org.apache.provisionr.amazon.core.ProviderClientCache.java
/** * Marker interface only used to hide generic type arguments * from Apache Aries and make Blueprint DI work as expected */ public interface ProviderClientCache extends LoadingCache<Provider, AmazonEC2> { }
From source file rickbw.incubator.cache.LoadingMultiCache.java
/** * A {@link MultiCache} that implements {@link LoadingCache} and wraps other * {@link Cache}s that also implement {@link LoadingCache}. */ public final class LoadingMultiCache<K, V> extends MultiCache<K, V> implements LoadingCache<K, V> {
From source file com.streamsets.pipeline.stage.processor.kv.OptionalLoadingCache.java
/** * Wrapper for LoadingCache that enables implementation of cache miss and returning static * default values. The default values are always removed from the cache and hence values for * them will be looked up each time. */ public class OptionalLoadingCache<Key, Value> implements LoadingCache<Key, Optional<Value>> {
From source file org.spf4j.concurrent.UnboundedRacyLoadingCache.java
/** * * @author zoly */ @ParametersAreNonnullByDefault public final class UnboundedRacyLoadingCache<K, V> implements LoadingCache<K, V> {
From source file org.apache.druid.server.lookup.cache.loading.OnHeapLoadingCache.java
public class OnHeapLoadingCache<K, V> implements LoadingCache<K, V> { private static final Logger log = new Logger(OnHeapLoadingCache.class); private static final int DEFAULT_INITIAL_CAPACITY = 16; //See com.google.common.cache.CacheBuilder#DEFAULT_CONCURRENCY_LEVEL private static final int DEFAULT_CONCURRENCY_LEVEL = 4;
From source file io.druid.server.lookup.cache.loading.OnHeapLoadingCache.java
public class OnHeapLoadingCache<K, V> implements LoadingCache<K, V> { private final static Logger log = new Logger(OnHeapLoadingCache.class); private static final int DEFAULT_INITIAL_CAPACITY = 16; //See com.google.common.cache.CacheBuilder#DEFAULT_CONCURRENCY_LEVEL private static final int DEFAULT_CONCURRENCY_LEVEL = 4;
From source file org.spf4j.concurrent.UnboundedLoadingCache.java
/** * * @author zoly */ @ParametersAreNonnullByDefault public final class UnboundedLoadingCache<K, V> implements LoadingCache<K, V> {
From source file com.github.benmanes.caffeine.guava.CaffeinatedGuavaLoadingCache.java
/** * A Caffeine-backed loading cache through a Guava facade. * * @author ben.manes@gmail.com (Ben Manes) */ @SuppressWarnings("deprecation")