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:
  • Constructor Details

    • AbstractCachingCacheResolver

      public AbstractCachingCacheResolver()
  • Method Details

    • resolve

      public T resolve()
      Description copied from interface: CacheResolver
      Resolves the instance reference to the GemFireCache implementation.
      Specified by:
      resolve in interface CacheResolver<T extends org.apache.geode.cache.GemFireCache>
      Returns:
      a instance reference to a GemFireCache implementation.
    • doResolve

      protected abstract T doResolve()
      Performs the actual resolution process of the GemFireCache object iff the cache reference is not already cached.
      See Also: