Class PoolManagerPoolResolver

java.lang.Object
org.springframework.data.gemfire.client.support.PoolManagerPoolResolver
All Implemented Interfaces:
PoolResolver

public class PoolManagerPoolResolver extends Object implements PoolResolver
PoolManagerPoolResolver is an implementation of PoolResolver that delegates all Pool resolution logic to the Apache Geode PoolManager.
Since:
2.3.0
See Also:
  • Constructor Details

    • PoolManagerPoolResolver

      public PoolManagerPoolResolver()
  • Method Details

    • resolve

      @Nullable public org.apache.geode.cache.client.Pool resolve(@Nullable org.apache.geode.cache.Region<?,?> region)
      Resolves the Pool used by the given Region by delegating to PoolManager.find(Region).
      Specified by:
      resolve in interface PoolResolver
      Parameters:
      region - Region from which to resolve the associated Pool.
      Returns:
      the Pool used by the given Region.
      See Also:
      • PoolManager.find(Region)
      • Pool
    • resolve

      @Nullable public org.apache.geode.cache.client.Pool resolve(@Nullable String poolName)
      Resolves the Pool with the given name by delegating to PoolManager.find(String).
      Specified by:
      resolve in interface PoolResolver
      Parameters:
      poolName - name of the Pool to resolve.
      Returns:
      the Pool with the given name or {@link null} if no Pool exists with the name.
      See Also:
      • PoolManager.find(String)
      • Pool