Class DefaultCacheRegion

java.lang.Object
de.hybris.platform.regioncache.region.impl.DefaultCacheRegion
All Implemented Interfaces:
CacheRegion

public class DefaultCacheRegion extends Object implements CacheRegion
Default cache region implementation.
For the synchronization it uses ReentrantReadWriteLock one for whole cache map. It is really inefficient then.
  • Field Details

    • cacheMap

      protected CacheMap cacheMap
    • handledTypes

      protected String[] handledTypes
    • lifecycleCallback

      protected CacheLifecycleCallback lifecycleCallback
    • name

      protected final String name
    • stats

      protected final CacheStatistics stats
    • sharedLock

      protected final ReentrantReadWriteLock sharedLock
    • statsEnabled

      protected volatile boolean statsEnabled
    • exclusiveComputation

      protected final boolean exclusiveComputation
  • Constructor Details

    • DefaultCacheRegion

      public DefaultCacheRegion(String name)
    • DefaultCacheRegion

      public DefaultCacheRegion(String name, CacheMap cacheMap, String[] handledTypes)
    • DefaultCacheRegion

      public DefaultCacheRegion(String name, boolean exclusiveComputation, boolean statsEnabled)
    • DefaultCacheRegion

      public DefaultCacheRegion(String name, CacheMap cacheMap, CacheStatistics stats, String[] handledTypes)
    • DefaultCacheRegion

      public DefaultCacheRegion(String name, CacheMap cacheMap, CacheStatistics stats, String[] handledTypes, boolean exclusiveComputation, boolean statsEnabled)
    • DefaultCacheRegion

      public DefaultCacheRegion(String name, int maxEntries, boolean exclusiveComputation, boolean statsEnabled)
    • DefaultCacheRegion

      @Deprecated(since="1811", forRemoval=true) public DefaultCacheRegion(String name, int maxEntries, boolean exclusiveComputation, String evictionPolicy, boolean statsEnabled)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 1811
      Parameters:
      evictionPolicy -
    • DefaultCacheRegion

      public DefaultCacheRegion(String name, int maxEntries)
  • Method Details