public class RegionServiceRegionResolver<T extends org.apache.geode.cache.RegionService> extends AbstractCachingRegionResolver
RegionResolver
implementation used to resolve a cache Region
identified by name
using the configured RegionService
.Cache
,
GemFireCache
,
Region
,
RegionService
,
ClientCache
,
CacheResolver
,
RegionResolver
,
AbstractCachingRegionResolver
Modifier and Type | Class and Description |
---|---|
protected static interface |
RegionServiceRegionResolver.RegionServiceResolver<T extends org.apache.geode.cache.RegionService> |
Constructor and Description |
---|
RegionServiceRegionResolver(RegionServiceRegionResolver.RegionServiceResolver<T> resolver)
Constructs a new instance of
RegionServiceRegionResolver initialized with
the given RegionServiceRegionResolver.RegionServiceResolver . |
Modifier and Type | Method and Description |
---|---|
protected <K,V> org.apache.geode.cache.Region<K,V> |
doResolve(String regionName)
Resolves a cache
Region identified by the given name using the configured
RegionService resolved from the RegionServiceRegionResolver.RegionServiceResolver . |
static <S extends org.apache.geode.cache.GemFireCache> |
from(CacheResolver<S> cacheResolver)
Factory method used to construct a
RegionServiceRegionResolver from a CacheResolver . |
static RegionServiceRegionResolver<org.apache.geode.cache.RegionService> |
from(org.apache.geode.cache.RegionService regionService)
Factory method used to construct a
RegionServiceRegionResolver initialized with
the given RegionService . |
protected RegionServiceRegionResolver.RegionServiceResolver<T> |
getRegionServiceResolver()
Returns the configured
RegionServiceRegionResolver.RegionServiceResolver used to resolve the RegionService that is then used
to resolve cache Regions by name . |
afterRegionDestroy, resolve
afterCreate, afterDestroy, afterInvalidate, afterRegionClear, afterRegionCreate, afterRegionInvalidate, afterRegionLive, afterUpdate, close
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
require
public RegionServiceRegionResolver(RegionServiceRegionResolver.RegionServiceResolver<T> resolver)
RegionServiceRegionResolver
initialized with
the given RegionServiceRegionResolver.RegionServiceResolver
.resolver
- RegionServiceRegionResolver.RegionServiceResolver
used to resolve the RegionService
that is used to resolve
cache Regions
by name
.IllegalArgumentException
- if RegionServiceRegionResolver.RegionServiceResolver
is null.RegionServiceRegionResolver.RegionServiceResolver
@NonNull public static <S extends org.apache.geode.cache.GemFireCache> RegionServiceRegionResolver<S> from(@NonNull CacheResolver<S> cacheResolver)
RegionServiceRegionResolver
from a CacheResolver
.
The CacheResolver
will resolve an instance of GemFireCache
, such as a peer
Cache
or a ClientCache
, which is a RegionService
capable of resolving a Region
identified by name
.S
- subclass
of GemFireCache
.cacheResolver
- CacheResolver
used to resolve the RegionService
.RegionServiceRegionResolver
.IllegalArgumentException
- if CacheResolver
is null.RegionServiceRegionResolver(RegionServiceResolver)
,
CacheResolver
@NonNull public static RegionServiceRegionResolver<org.apache.geode.cache.RegionService> from(@Nullable org.apache.geode.cache.RegionService regionService)
RegionServiceRegionResolver
initialized with
the given RegionService
.
The RegionService
may be an instance of GemFireCache
, such as a peer Cache
or ClientCache
.regionService
- RegionService
used to resolve cache Regions
identified by name
; may be null.RegionServiceRegionResolver
.RegionServiceRegionResolver(RegionServiceResolver)
,
RegionService
protected RegionServiceRegionResolver.RegionServiceResolver<T> getRegionServiceResolver()
RegionServiceRegionResolver.RegionServiceResolver
used to resolve the RegionService
that is then used
to resolve cache Regions
by name
.RegionServiceRegionResolver.RegionServiceResolver
.RegionServiceRegionResolver.RegionServiceResolver
@Nullable protected <K,V> org.apache.geode.cache.Region<K,V> doResolve(@Nullable String regionName)
Region
identified by the given name
using the configured
RegionService
resolved from the RegionServiceRegionResolver.RegionServiceResolver
.doResolve
in class AbstractCachingRegionResolver
K
- type
of the Region
key.V
- type
of the Region
value.regionName
- name
of the Region
to resolve.Region
identified by the given name
; may be null.RegionService.getRegion(String)
,
getRegionServiceResolver()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.