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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract TPerforms the actual resolution process of theGemFireCacheobject iff the cache reference is not already cached.resolve()Resolves the instance reference to theGemFireCacheimplementation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.gemfire.CacheResolver
get
-
Constructor Details
-
AbstractCachingCacheResolver
public AbstractCachingCacheResolver()
-
-
Method Details
-
resolve
Description copied from interface:CacheResolverResolves the instance reference to theGemFireCacheimplementation.- Specified by:
resolvein interfaceCacheResolver<T extends GemFireCache>- Returns:
- a instance reference to a
GemFireCacheimplementation.
-
doResolve
Performs the actual resolution process of theGemFireCacheobject iff the cache reference is not already cached.- See Also:
-