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 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 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: