List of usage examples for com.google.common.collect MapEvictionListener interface-usage
From source file com.tag.Cache.java
public abstract class Cache<K, V> implements Function<K, V>, MapEvictionListener<K, V>, Map<K, V> { protected final Map<K, V> map; public Cache() { this.map = createMap();
From source file de.cosmocode.palava.scope.SingletonUnitOfWorkScope.java
/**
* A {@link Singleton} based {@link UnitOfWorkScope}.
*
* @since 2.0
* @author Willi Schoenborn
*/
From source file org.elasticsearch.index.cache.field.data.weak.WeakFieldDataCache.java
/** * */ public class WeakFieldDataCache extends AbstractConcurrentMapFieldDataCache implements MapEvictionListener<String, FieldData> {
From source file org.elasticsearch.index.cache.filter.weak.WeakFilterCache.java
/** * A weak reference based filter cache that has weak keys on the <tt>IndexReader</tt>. * * */ public class WeakFilterCache extends AbstractConcurrentMapFilterCache
From source file org.elasticsearch.index.cache.filter.soft.SoftFilterCache.java
/** * A soft reference based filter cache that has soft keys on the <tt>IndexReader</tt>. * * */ public class SoftFilterCache extends AbstractConcurrentMapFilterCache
From source file org.elasticsearch.index.cache.filter.resident.ResidentFilterCache.java
/** * A resident reference based filter cache that has weak keys on the <tt>IndexReader</tt>. * * */ public class ResidentFilterCache extends AbstractConcurrentMapFilterCache
From source file com.hipu.bdb.util.ObjectIdentityBdbManualCache.java
/**
* A BDB JE backed object cache.
*
* Soft references to previously-instantiated objects are held so that
* unless/until an object is garbage collected, subsequent get()s will
* return the exact same object (avoiding redundant creation or disagreement