Class AbstractCachingCacheResolver<T extends 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 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
- Author:
- John Blum
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
Performs the actual resolution process of theGemFireCache
object iff the cache reference is not already cached.resolve()
Resolves the instance reference to theGemFireCache
implementation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.gemfire.CacheResolver
get
-
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 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:
-