Example usage for com.google.common.cache AbstractLoadingCache subclass-usage

List of usage examples for com.google.common.cache AbstractLoadingCache subclass-usage

Introduction

In this page you can find the example usage for com.google.common.cache AbstractLoadingCache subclass-usage.

Usage

From source file com.vityuk.ginger.util.ThreadLocalLoadingCache.java

/**
 * This is basic {@link LoadingCache} implementation with thread local storage. It can be useful for caching
 * non-thread safe resources.
 * <p/>
 * Method {@link #create(com.google.common.cache.CacheLoader)} creates cache instance with items which never expire.
 * Method {@link #create(com.google.common.cache.CacheLoader, long)} creates instance with expiration strategy.

From source file brooklyn.util.guava.KeyTransformingLoadingCache.java

/**
 * A cache that transforms its keys before deferring to a delegate {@link LoadingCache}.
 */
// Concise names welcome.
public class KeyTransformingLoadingCache<A, B, V> extends AbstractLoadingCache<A, V> {

From source file org.apache.brooklyn.util.guava.KeyTransformingLoadingCache.java

/**
 * A cache that transforms its keys before deferring to a delegate {@link LoadingCache}.
 */
// Concise names welcome.
public class KeyTransformingLoadingCache<A, B, V> extends AbstractLoadingCache<A, V> {

From source file com.ignorelist.kassandra.steam.scraper.FileCache.java

/**
 *
 * @author poison
 */
public class FileCache extends AbstractLoadingCache<String, InputStream> {

From source file org.jclouds.virtualbox.functions.IpAddressesLoadingCache.java

/**
 * A {@link LoadingCache} for ip addresses. If the requested ip address has been
 * previously extracted this returns it, if not it calls vbox api.
 * 
 * @author Andrea Turli
 * 

From source file co.cask.common.security.zookeeper.SharedResourceCache.java

/**
 * ZooKeeper recipe to propagate changes to a shared cache across a number of listeners.  The cache entries
 * are materialized as child znodes under a common parent.
 * @param <T> The type of resource that is distributed to all participants in the cache.
 */
public class SharedResourceCache<T> extends AbstractLoadingCache<String, T> {

From source file co.cask.cdap.security.zookeeper.SharedResourceCache.java

/**
 * ZooKeeper recipe to propagate changes to a shared cache across a number of listeners.  The cache entries
 * are materialized as child znodes under a common parent.
 * @param <T> The type of resource that is distributed to all participants in the cache.
 */
public class SharedResourceCache<T> extends AbstractLoadingCache<String, T> {

From source file org.jclouds.virtualbox.functions.MastersLoadingCache.java

/**
 * A {@link LoadingCache} for masters. If the requested master has been
 * previously created this returns it, if not it coordinates its creation
 * including downloading isos and creating cache/config directories. This also
 * implements {@link Supplier} in order to provide jetty with the current image
 * (only one master can be created at a time).