Spring Data for VMware GemFire
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:
-
ClientCachePoolCacheResolverPoolResolver
-
Field Summary
Fields inherited from interface org.springframework.data.gemfire.client.PoolResolver
DEFAULT_POOL_NAME -
Constructor Summary
ConstructorsConstructorDescriptionClientCacheDefaultPoolResolver(CacheResolver<org.apache.geode.cache.client.ClientCache> clientCacheResolver) Constructs a new instance ofClientCacheDefaultPoolResolverinitialized with aCacheResolverused to lazily resolve theClientCacheinstance onPoolresolution. -
Method Summary
Modifier and TypeMethodDescriptionprotected CacheResolver<org.apache.geode.cache.client.ClientCache>Returns a reference to the configuredCacheResolverused to (lazily) resolve theClientCacheinstance.org.apache.geode.cache.client.PoolResolves aPoolwith the givenname.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 ofClientCacheDefaultPoolResolverinitialized with aCacheResolverused to lazily resolve theClientCacheinstance onPoolresolution.- Parameters:
clientCacheResolver-CacheResolverused to lazily resolve theClientCacheinstance; must not be null.- Throws:
IllegalArgumentException- ifCacheResolveris null.- See Also:
-
ClientCacheCacheResolver
-
-
Method Details
-
getClientCacheResolver
@NonNull protected CacheResolver<org.apache.geode.cache.client.ClientCache> getClientCacheResolver()Returns a reference to the configuredCacheResolverused to (lazily) resolve theClientCacheinstance.- Returns:
- the configured
CacheResolverused to resolve theClientCacheinstance. - See Also:
-
ClientCacheCacheResolver
-
resolve
Description copied from interface:PoolResolverResolves aPoolwith the givenname.- Specified by:
resolvein interfacePoolResolver- Parameters:
poolName-nameof thePoolto resolve.- Returns:
- the
Poolwith the givennameor {@link null} if noPoolexists with thename. - See Also:
-
Pool
-