Class LRUCacheRegion
- java.lang.Object
-
- de.hybris.platform.regioncache.region.impl.AbstractMapBasedCacheRegion
-
- de.hybris.platform.regioncache.region.impl.LRUCacheRegion
-
- All Implemented Interfaces:
CacheRegion
- Direct Known Subclasses:
FacetSearchConfigCacheRegion,MediaCacheRegion,ScriptsCacheRegion
public class LRUCacheRegion extends AbstractMapBasedCacheRegion
Cache region implementation based on Google's ConcurrentLinkedHashMap. http://code.google.com/p/concurrentlinkedhashmap/
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.regioncache.region.impl.AbstractMapBasedCacheRegion
cacheMap, handledTypes, lifecycleCallback, name, stats, statsEnabled
-
-
Constructor Summary
Constructors Constructor Description LRUCacheRegion(java.lang.String name)LRUCacheRegion(java.lang.String name, int maxEntries, boolean statsEnabled)LRUCacheRegion(java.lang.String name, int maxEntries, boolean statsEnabled, com.googlecode.concurrentlinkedhashmap.Weigher<java.lang.Object> weigher)LRUCacheRegion(java.lang.String name, CacheStatistics stats, boolean statsEnabled, int maxEntries, com.googlecode.concurrentlinkedhashmap.Weigher<java.lang.Object> weigher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCacheMaxEntries()Gets number of cache entries above which invalidation occurs.protected java.lang.ObjectputIfAbsent(CacheKey key, java.lang.Object value)-
Methods inherited from class de.hybris.platform.regioncache.region.impl.AbstractMapBasedCacheRegion
clearCache, containsKey, equals, get, getAllKeys, getCacheRegionStatistics, getHandledTypes, getMaxReachedSize, getName, getWithLoader, hashCode, invalidate, isStatsEnabled, registerLifecycleCallback, remove, setHandledTypes, setStatsEnabled, toString
-
-
-
-
Constructor Detail
-
LRUCacheRegion
public LRUCacheRegion(java.lang.String name)
-
LRUCacheRegion
public LRUCacheRegion(java.lang.String name, int maxEntries, boolean statsEnabled)
-
LRUCacheRegion
public LRUCacheRegion(java.lang.String name, int maxEntries, boolean statsEnabled, com.googlecode.concurrentlinkedhashmap.Weigher<java.lang.Object> weigher)
-
LRUCacheRegion
public LRUCacheRegion(java.lang.String name, CacheStatistics stats, boolean statsEnabled, int maxEntries, com.googlecode.concurrentlinkedhashmap.Weigher<java.lang.Object> weigher)
-
-
Method Detail
-
putIfAbsent
protected java.lang.Object putIfAbsent(CacheKey key, java.lang.Object value)
- Specified by:
putIfAbsentin classAbstractMapBasedCacheRegion
-
getCacheMaxEntries
public long getCacheMaxEntries()
Description copied from interface:CacheRegionGets number of cache entries above which invalidation occurs.
-
-