@FunctionalInterface public interface PoolResolver
PoolResolver
is a strategy interface for resolving references to Apache Geode Pool
instances.
This is used throughout SDG's codebase to separate SDG's Pool
resolution logic from being explicitly tied to
to Apache Geode's static PoolManager
class. This interfaces also serves
as an SPI for different strategies when resolving a Pool
.FunctionalInterface
,
Region
,
Pool
Modifier and Type | Method and Description |
---|---|
default org.apache.geode.cache.client.Pool |
resolve(org.apache.geode.cache.Region<?,?> region)
Resolves the
Pool instance used by the given Region . |
org.apache.geode.cache.client.Pool |
resolve(String poolName)
Resolves a
Pool with the given name . |
@Nullable default org.apache.geode.cache.client.Pool resolve(@Nullable org.apache.geode.cache.Region<?,?> region)
Pool
instance used by the given Region
.
If the Region
is a client Region
but does not explicitly configure
a specific Pool
reference, then the DEFAULT Pool
is returned.
If the Region
is local or a peer Region
, then null
is returned.region
- Region
from which to resolve the associated Pool
.Pool
instance associated with the given Region
,
or the DEFAULT Pool
if the Region
is a client Region
,
or null if the Region
is not a client Region
.Region
,
Pool
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.