Class SingleRegionRegionResolver

java.lang.Object
org.springframework.data.gemfire.support.SingleRegionRegionResolver
All Implemented Interfaces:
RegionResolver

public class SingleRegionRegionResolver extends Object implements RegionResolver
RegionResolver implementation resolving a single, configured Region object.
Since:
2.3.0
See Also:
  • Constructor Details

    • SingleRegionRegionResolver

      public SingleRegionRegionResolver(@NonNull org.apache.geode.cache.Region region)
      Constructs a new instance of SingleRegionRegionResolver with the given Region.
      Parameters:
      region - Region returned in the resolution process; must not be null.
      Throws:
      IllegalArgumentException - if Region is null.
      See Also:
      • Region
  • Method Details

    • getRegion

      @NonNull protected <K, V> org.apache.geode.cache.Region<K,V> getRegion()
      Returns a reference to the configured Region.
      Type Parameters:
      K - type of the Region key.
      V - type of the Region value.
      Returns:
      a reference to the configured Region.
      See Also:
      • Region
    • resolve

      @Nullable public <K, V> org.apache.geode.cache.Region<K,V> resolve(@Nullable String regionName)
      Description copied from interface: RegionResolver
      Returns a Region resolved with the given name.
      Specified by:
      resolve in interface RegionResolver
      Type Parameters:
      K - type of the Region key.
      V - type of the Region value;
      Parameters:
      regionName - name of the Region to resolve; may be null.
      Returns:
      the resolved Region with the given name; may be null.
      See Also: