public class SinglePoolPoolResolver extends Object implements PoolResolver
PoolResolver implementation that resolves a single, configured Pool.Pool,
PoolResolverDEFAULT_POOL_NAME| Constructor and Description |
|---|
SinglePoolPoolResolver(org.apache.geode.cache.client.Pool pool)
Constructs an instance of
SinglePoolPoolResolver initialized with the given Pool
returned during resolution. |
| Modifier and Type | Method and Description |
|---|---|
static SinglePoolPoolResolver |
from(org.apache.geode.cache.client.ClientCache clientCache)
Factory method used to construct a new instance of
SinglePoolPoolResolver from an instance of
ClientCache using the ClientCache.getDefaultPool() DEFAULT} Pool. |
protected org.apache.geode.cache.client.Pool |
getPool()
Returns a reference to the configured, "resolvable"
Pool. |
org.apache.geode.cache.client.Pool |
resolve(String poolName)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrequire, resolve, resolvepublic SinglePoolPoolResolver(@NonNull org.apache.geode.cache.client.Pool pool)
SinglePoolPoolResolver initialized with the given Pool
returned during resolution.pool - Pool object resolved by this PoolResolver.IllegalArgumentException - if Pool is null.Poolpublic static SinglePoolPoolResolver from(@NonNull org.apache.geode.cache.client.ClientCache clientCache)
SinglePoolPoolResolver from an instance of
ClientCache using the ClientCache.getDefaultPool() DEFAULT} Pool.clientCache - ClientCache instance used to resolve the DEFAULT
Pool.SinglePoolPoolResolver initialized with the DEFAULT Pool.IllegalArgumentException - if the ClientCache or the ClientCache.getDefaultPool() DEFAULT}
Pool is null.ClientCache,
ClientCache.getDefaultPool()@NonNull protected org.apache.geode.cache.client.Pool getPool()
Pool.Pool.Pool@Nullable public org.apache.geode.cache.client.Pool resolve(@Nullable String poolName)
resolve in interface PoolResolverpoolName - name of the Pool to resolve.Pool if the configured Pool name
and the given poolName match.Pool.getName()Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.