Class ClientCacheDefaultPoolResolver
java.lang.Object
org.springframework.data.gemfire.client.support.ClientCacheDefaultPoolResolver
- All Implemented Interfaces:
PoolResolver
PoolResolver
implementation used to resolve the DEFAULT Pool
from a ClientCache
instance by lazily resolving the ClientCache
instance and calling ClientCache.getDefaultPool()
on DEFAULT Pool
resolution.- Since:
- 2.3.0
- See Also:
-
ClientCache
Pool
CacheResolver
PoolResolver
-
Field Summary
Fields inherited from interface org.springframework.data.gemfire.client.PoolResolver
DEFAULT_POOL_NAME
-
Constructor Summary
ConstructorDescriptionClientCacheDefaultPoolResolver
(CacheResolver<org.apache.geode.cache.client.ClientCache> clientCacheResolver) Constructs a new instance ofClientCacheDefaultPoolResolver
initialized with aCacheResolver
used to lazily resolve theClientCache
instance onPool
resolution. -
Method Summary
Modifier and TypeMethodDescriptionprotected CacheResolver<org.apache.geode.cache.client.ClientCache>
Returns a reference to the configuredCacheResolver
used to (lazily) resolve theClientCache
instance.org.apache.geode.cache.client.Pool
Resolves aPool
with the givenname
.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, resolve
-
Constructor Details
-
ClientCacheDefaultPoolResolver
public ClientCacheDefaultPoolResolver(@NonNull CacheResolver<org.apache.geode.cache.client.ClientCache> clientCacheResolver) Constructs a new instance ofClientCacheDefaultPoolResolver
initialized with aCacheResolver
used to lazily resolve theClientCache
instance onPool
resolution.- Parameters:
clientCacheResolver
-CacheResolver
used to lazily resolve theClientCache
instance; must not be null.- Throws:
IllegalArgumentException
- ifCacheResolver
is null.- See Also:
-
ClientCache
CacheResolver
-
-
Method Details
-
getClientCacheResolver
@NonNull protected CacheResolver<org.apache.geode.cache.client.ClientCache> getClientCacheResolver()Returns a reference to the configuredCacheResolver
used to (lazily) resolve theClientCache
instance.- Returns:
- the configured
CacheResolver
used to resolve theClientCache
instance. - See Also:
-
ClientCache
CacheResolver
-
resolve
Description copied from interface:PoolResolver
Resolves aPool
with the givenname
.- 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:
-
Pool
-