Class AbstractCachingCacheResolver<T extends org.apache.geode.cache.GemFireCache>
java.lang.Object
org.springframework.data.gemfire.support.AbstractCachingCacheResolver<T>
- All Implemented Interfaces:
Supplier<T>
,CacheResolver<T>
- Direct Known Subclasses:
BeanFactoryCacheResolver
,CacheFactoryCacheResolver
,ClientCacheFactoryCacheResolver
,ComposableCacheResolver
public abstract class AbstractCachingCacheResolver<T extends org.apache.geode.cache.GemFireCache>
extends Object
implements CacheResolver<T>
Thread-safe, abstract
CacheResolver
implementation to "cache" the instance reference to the (single)
GemFireCache
so that the GemFireCache
object is only ever resolved once.- Since:
- 2.3.0
- See Also:
-
GemFireCache
CacheResolver
-
Constructor Details
-
AbstractCachingCacheResolver
public AbstractCachingCacheResolver()
-
-
Method Details
-
resolve
Description copied from interface:CacheResolver
Resolves the instance reference to theGemFireCache
implementation.- Specified by:
resolve
in interfaceCacheResolver<T extends org.apache.geode.cache.GemFireCache>
- Returns:
- a instance reference to a
GemFireCache
implementation.
-
doResolve
Performs the actual resolution process of theGemFireCache
object iff the cache reference is not already cached.- See Also:
-