Interface RegionResolver

All Known Implementing Classes:
AbstractCachingRegionResolver, BeanFactoryRegionResolver, ComposableRegionResolver, RegionServiceRegionResolver, SingleRegionRegionResolver
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RegionResolver
The RegionResolver interface is a Strategy interface used to encapsulate different algorithms (Strategies) used to resolve a cache Region.
Since:
2.3.0
See Also:
  • Region
  • Method Summary

    Modifier and Type
    Method
    Description
    default <K, V> org.apache.geode.cache.Region<K,V>
    require(String regionName)
    Requires a Region resolved from the given name.
    <K, V> org.apache.geode.cache.Region<K,V>
    resolve(String regionName)
    Returns a Region resolved with the given name.
  • Method Details

    • resolve

      @Nullable <K, V> org.apache.geode.cache.Region<K,V> resolve(@Nullable String regionName)
      Returns a Region resolved with the given name.
      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:
    • require

      @NonNull default <K, V> org.apache.geode.cache.Region<K,V> require(@NonNull String regionName)
      Requires a Region resolved from the given name.
      Type Parameters:
      K - type of the Region key.
      V - type of the Region value;
      Parameters:
      regionName - name of the Region to resolve; must not be null.
      Returns:
      the resolved Region with the given name; never null.
      Throws:
      IllegalStateException - if the resolved Region is null, i.e. does not exist.
      See Also: