Class DefaultCacheRegionProvider
java.lang.Object
de.hybris.platform.regioncache.region.impl.DefaultCacheRegionProvider
- All Implemented Interfaces:
CacheRegionProvider
Class keeps region lists and provides region list access methods.
BeanName=defaultCacheRegionProvider, alias=cacheRegionProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<CacheRegion>Internal dataprotected CacheRegionprotected Map<String,CacheRegion> protected List<CacheRegion>protected Map<String,List<CacheRegion>> protected Map<String,List<CacheRegion>> protected List<CacheRegion> -
Constructor Summary
ConstructorsConstructorDescriptionDefaultCacheRegionProvider(CacheRegionsHolder cacheRegionsHolder) DefaultCacheRegionProvider(Collection<CacheRegion> cacheRegions) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<CacheRegion>Creates default regions.Returns immutable collections of ALL regions (manual and regular)getManualRegion(String name) Returns manual region of name given or NULL.Returns all manual regions.returns regions handling __QUERY_CACHE__getRegionByName(String name) returns singleton collection for region of name given.Gets collection of regions able to handle all types.
It is necessary to resolve specific type first.Returns all non-manual regions.getRegionsForType(Object typeCode) returns collection of regions handling type given.voidinit()protected booleanisManualRegion(CacheRegion region) voidsetRegionRegistryAllocationStrategy(RegionRegistryAllocationStrategy regionRegistryAllocationStrategy) Spring initialization
-
Field Details
-
allRegions
Internal data -
manualRegions
-
regularRegions
-
allTypeRegion
-
queryTypeRegions
-
regionsTypes
-
regionsSingletonCollections
-
-
Constructor Details
-
DefaultCacheRegionProvider
-
DefaultCacheRegionProvider
-
-
Method Details
-
createDefaultRegion
Creates default regions. Subclasses can override defaults defined here. -
init
@PostConstruct public void init() -
getAllRegions
Returns immutable collections of ALL regions (manual and regular)- Specified by:
getAllRegionsin interfaceCacheRegionProvider
-
getRegions
Returns all non-manual regions.- Specified by:
getRegionsin interfaceCacheRegionProvider
-
getRegionsForType
returns collection of regions handling type given.
Map<regionName, CacheRegion>- Specified by:
getRegionsForTypein interfaceCacheRegionProvider
-
getRegionForAllTypes
Gets collection of regions able to handle all types.
It is necessary to resolve specific type first. If it cannot be done all-type-region shall be used.- Specified by:
getRegionForAllTypesin interfaceCacheRegionProvider
-
getRegionByName
returns singleton collection for region of name given.- Specified by:
getRegionByNamein interfaceCacheRegionProvider
-
getQueryRegions
returns regions handling __QUERY_CACHE__- Specified by:
getQueryRegionsin interfaceCacheRegionProvider
-
getManualRegion
Returns manual region of name given or NULL.- Specified by:
getManualRegionin interfaceCacheRegionProvider
-
getManualRegions
Returns all manual regions.- Specified by:
getManualRegionsin interfaceCacheRegionProvider
-
isManualRegion
-
setRegionRegistryAllocationStrategy
public void setRegionRegistryAllocationStrategy(RegionRegistryAllocationStrategy regionRegistryAllocationStrategy) Spring initialization
-