Interface CacheRegionProvider
- All Known Implementing Classes:
DefaultCacheRegionProvider
public interface CacheRegionProvider
Class keeps region lists and provides region list access methods.
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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.Get single region 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.
-
Method Details
-
getAllRegions
List<CacheRegion> getAllRegions()Returns immutable collections of ALL regions (manual and regular) -
getRegions
List<CacheRegion> getRegions()Returns all non-manual regions. -
getRegionsForType
returns collection of regions handling type given. -
getRegionForAllTypes
CacheRegion getRegionForAllTypes()Get single region able to handle all types.
It is necessary to resolve specific type first. If it cannot be done all-type-region shall be used.
Multiple all-type regions is configuration error. -
getRegionByName
returns singleton collection for region of name given.
It is convenience method not to create collection by a region resolver. -
getQueryRegions
List<CacheRegion> getQueryRegions()returns regions handling __QUERY_CACHE__ -
getManualRegion
Returns manual region of name given or NULL. -
getManualRegions
Collection<CacheRegion> getManualRegions()Returns all manual regions.
-