Interface CacheRegionResolver

  • All Known Implementing Classes:
    DefaultCacheRegionResolver, SingleCacheRegionResolver

    public interface CacheRegionResolver
    Provides 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 Detail

      • 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