@FunctionalInterface public interface RegionResolver
RegionResolver
interface is a Strategy interface used to encapsulate different algorithms
(Strategies) used to resolve a cache Region
.Region
Modifier and Type | Method and Description |
---|---|
default <K,V> org.apache.geode.cache.Region<K,V> |
require(String regionName)
Requires a
Region resolved from the given name . |
<K,V> org.apache.geode.cache.Region<K,V> |
resolve(String regionName)
Returns a
Region resolved with the given name . |
@Nullable <K,V> org.apache.geode.cache.Region<K,V> resolve(@Nullable String regionName)
Region
resolved with the given name
.@NonNull default <K,V> org.apache.geode.cache.Region<K,V> require(@NonNull String regionName)
Region
resolved from the given name
.K
- type
of the Region
key.V
- type
of the Region
value;regionName
- name
of the Region
to resolve; must not be null.Region
with the given name
; never null.IllegalStateException
- if the resolved Region
is null, i.e. does not exist.Region
,
String
,
resolve(String)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.