Interface CacheRegionResolver
-
- All Known Implementing Classes:
DefaultCacheRegionResolver,SingleCacheRegionResolver
public interface CacheRegionResolverProvides a CacheRegion given the key and regionName.
Region resolve strategy:
- cache is looking for all regions of given type,
- if only one region found this region is returned,
- if more than one region handling specified type is found, system is looking for predefined region name,
- if region name is specified region of that name is returned, otherwise CacheRegionNotSpecifiedException exception is thrown.
There may be more regions registered in the system. CacheController ask them sequentially and first not null region wins.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CacheRegionresolveForGet(CacheKey key)java.util.List<CacheRegion>resolveForInvalidation(CacheKey key)Returns regions for direct invalidationjava.util.List<CacheRegion>resolveQueryRegions(CacheKey key)Returns regions for indirect invalidation
-
-
-
Method Detail
-
resolveForGet
CacheRegion resolveForGet(CacheKey key)
-
resolveForInvalidation
java.util.List<CacheRegion> resolveForInvalidation(CacheKey key)
Returns regions for direct invalidation
-
resolveQueryRegions
java.util.List<CacheRegion> resolveQueryRegions(CacheKey key)
Returns regions for indirect invalidation
-
-