Class PoolManagerPoolResolver
java.lang.Object
org.springframework.data.gemfire.client.support.PoolManagerPoolResolver
- All Implemented Interfaces:
PoolResolver
PoolManagerPoolResolver
is an implementation of PoolResolver
that delegates all Pool
resolution logic to the Apache Geode PoolManager
.- Since:
- 2.3.0
- See Also:
-
Region
Pool
PoolManager
PoolResolver
-
Field Summary
Fields inherited from interface org.springframework.data.gemfire.client.PoolResolver
DEFAULT_POOL_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.geode.cache.client.Pool
org.apache.geode.cache.client.Pool
resolve
(org.apache.geode.cache.Region<?, ?> region) Resolves thePool
used by the givenRegion
by delegating toPoolManager.find(Region)
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.gemfire.client.PoolResolver
require, resolve
-
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 thePool
used by the givenRegion
by delegating toPoolManager.find(Region)
.- Specified by:
resolve
in interfacePoolResolver
- Parameters:
region
-Region
from which to resolve the associatedPool
.- Returns:
- the
Pool
used by the givenRegion
. - See Also:
-
PoolManager.find(Region)
Pool
-
resolve
- Specified by:
resolve
in interfacePoolResolver
- Parameters:
poolName
-name
of thePool
to resolve.- Returns:
- the
Pool
with the givenname
or {@link null} if noPool
exists with thename
. - See Also:
-
PoolManager.find(String)
Pool
-