public class DefaultCacheRegionProvider extends Object implements CacheRegionProvider
| Modifier and Type | Field and Description |
|---|---|
protected List<CacheRegion> |
allRegions
Internal data
|
protected CacheRegion |
allTypeRegion |
protected Map<String,CacheRegion> |
manualRegions |
protected List<CacheRegion> |
queryTypeRegions |
protected Map<String,List<CacheRegion>> |
regionsSingletonCollections |
protected Map<String,List<CacheRegion>> |
regionsTypes |
protected List<CacheRegion> |
regularRegions |
| Constructor and Description |
|---|
DefaultCacheRegionProvider(CacheRegionsHolder cacheRegionsHolder) |
DefaultCacheRegionProvider(Collection<CacheRegion> cacheRegions) |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<CacheRegion> |
createDefaultRegion()
Creates default regions.
|
List<CacheRegion> |
getAllRegions()
Returns immutable collections of ALL regions (manual and regular)
|
CacheRegion |
getManualRegion(String name)
Returns manual region of name given or NULL.
|
Collection<CacheRegion> |
getManualRegions()
Returns all manual regions.
|
List<CacheRegion> |
getQueryRegions()
returns regions handling __QUERY_CACHE__
|
List<CacheRegion> |
getRegionByName(String name)
returns singleton collection for region of name given.
|
CacheRegion |
getRegionForAllTypes()
Gets collection of regions able to handle all types.
It is necessary to resolve specific type first. |
List<CacheRegion> |
getRegions()
Returns all non-manual regions.
|
List<CacheRegion> |
getRegionsForType(Object typeCode)
returns collection of regions handling type given.
|
void |
init() |
protected boolean |
isManualRegion(CacheRegion region) |
void |
setRegionRegistryAllocationStrategy(RegionRegistryAllocationStrategy regionRegistryAllocationStrategy)
Spring initialization
|
protected List<CacheRegion> allRegions
protected Map<String,CacheRegion> manualRegions
protected List<CacheRegion> regularRegions
protected CacheRegion allTypeRegion
protected List<CacheRegion> queryTypeRegions
protected Map<String,List<CacheRegion>> regionsTypes
protected Map<String,List<CacheRegion>> regionsSingletonCollections
public DefaultCacheRegionProvider(CacheRegionsHolder cacheRegionsHolder)
public DefaultCacheRegionProvider(Collection<CacheRegion> cacheRegions)
protected Collection<CacheRegion> createDefaultRegion()
@PostConstruct public void init()
public List<CacheRegion> getAllRegions()
getAllRegions in interface CacheRegionProviderpublic List<CacheRegion> getRegions()
getRegions in interface CacheRegionProviderpublic List<CacheRegion> getRegionsForType(Object typeCode)
getRegionsForType in interface CacheRegionProviderpublic CacheRegion getRegionForAllTypes()
getRegionForAllTypes in interface CacheRegionProviderpublic List<CacheRegion> getRegionByName(String name)
getRegionByName in interface CacheRegionProviderpublic List<CacheRegion> getQueryRegions()
getQueryRegions in interface CacheRegionProviderpublic CacheRegion getManualRegion(String name)
getManualRegion in interface CacheRegionProviderpublic Collection<CacheRegion> getManualRegions()
getManualRegions in interface CacheRegionProviderprotected boolean isManualRegion(CacheRegion region)
public void setRegionRegistryAllocationStrategy(RegionRegistryAllocationStrategy regionRegistryAllocationStrategy)
Copyright © 2017 SAP SE. All Rights Reserved.