public class ClientCacheDefaultPoolResolver extends Object implements 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.ClientCache
,
Pool
,
CacheResolver
,
PoolResolver
DEFAULT_POOL_NAME
Constructor and Description |
---|
ClientCacheDefaultPoolResolver(CacheResolver<org.apache.geode.cache.client.ClientCache> clientCacheResolver)
Constructs a new instance of
ClientCacheDefaultPoolResolver initialized with a CacheResolver
used to lazily resolve the ClientCache instance on Pool resolution. |
Modifier and Type | Method and Description |
---|---|
protected CacheResolver<org.apache.geode.cache.client.ClientCache> |
getClientCacheResolver()
Returns a reference to the configured
CacheResolver used to (lazily) resolve
the ClientCache instance. |
org.apache.geode.cache.client.Pool |
resolve(String poolName)
Resolves a
Pool with the given name . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
require, resolve, resolve
public ClientCacheDefaultPoolResolver(@NonNull CacheResolver<org.apache.geode.cache.client.ClientCache> clientCacheResolver)
ClientCacheDefaultPoolResolver
initialized with a CacheResolver
used to lazily resolve the ClientCache
instance on Pool
resolution.clientCacheResolver
- CacheResolver
used to lazily resolve the ClientCache
instance;
must not be null.IllegalArgumentException
- if CacheResolver
is null.ClientCache
,
CacheResolver
@NonNull protected CacheResolver<org.apache.geode.cache.client.ClientCache> getClientCacheResolver()
CacheResolver
used to (lazily) resolve
the ClientCache
instance.CacheResolver
used to resolve the ClientCache
instance.ClientCache
,
CacheResolver
@Nullable public org.apache.geode.cache.client.Pool resolve(@Nullable String poolName)
PoolResolver
Pool
with the given name
.resolve
in interface PoolResolver
poolName
- name
of the Pool
to resolve.Pool
with the given name
or null
if no Pool
exists with
the name
.Pool
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.