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