Class AbstractCachingRegionResolver
java.lang.Object
org.apache.geode.cache.util.CacheListenerAdapter
org.springframework.data.gemfire.support.AbstractCachingRegionResolver
- All Implemented Interfaces:
org.apache.geode.cache.CacheCallback
,org.apache.geode.cache.CacheListener
,org.apache.geode.cache.Declarable
,RegionResolver
- Direct Known Subclasses:
BeanFactoryRegionResolver
,ComposableRegionResolver
,RegionServiceRegionResolver
public abstract class AbstractCachingRegionResolver
extends org.apache.geode.cache.util.CacheListenerAdapter
implements RegionResolver
RegionResolver
implementation capable of caching the results of a Region resolution (lookup) operation.- Since:
- 2.3.0
- See Also:
-
Region
CacheListener
CacheListenerAdapter
RegionResolver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterRegionDestroy
(org.apache.geode.cache.RegionEvent event) Clears the cache entry for theRegion
identified by theRegionEvent
.protected abstract <K,
V> org.apache.geode.cache.Region<K, V> <K,
V> org.apache.geode.cache.Region<K, V> Returns aRegion
resolved with the givenname
.Methods inherited from class org.apache.geode.cache.util.CacheListenerAdapter
afterCreate, afterDestroy, afterInvalidate, afterRegionClear, afterRegionCreate, afterRegionInvalidate, afterRegionLive, afterUpdate, close
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.geode.cache.Declarable
init, initialize
Methods inherited from interface org.springframework.data.gemfire.RegionResolver
require
-
Constructor Details
-
AbstractCachingRegionResolver
public AbstractCachingRegionResolver()
-
-
Method Details
-
resolve
Description copied from interface:RegionResolver
Returns aRegion
resolved with the givenname
. -
doResolve
@Nullable protected abstract <K,V> org.apache.geode.cache.Region<K,V> doResolve(@Nullable String regionName) -
afterRegionDestroy
public void afterRegionDestroy(@Nullable org.apache.geode.cache.RegionEvent event) Clears the cache entry for theRegion
identified by theRegionEvent
.- Specified by:
afterRegionDestroy
in interfaceorg.apache.geode.cache.CacheListener
- Overrides:
afterRegionDestroy
in classorg.apache.geode.cache.util.CacheListenerAdapter
- Parameters:
event
-RegionEvent
object capturing the details of theRegion
destroyed event.- See Also:
-
RegionEvent
remove(String)
-