Interface CacheResolver<T extends org.apache.geode.cache.GemFireCache>

Type Parameters:
T - subclass of GemFireCache.
All Superinterfaces:
Supplier<T>
All Known Implementing Classes:
AbstractCachingCacheResolver, BeanFactoryCacheResolver, CacheFactoryCacheResolver, ClientCacheFactoryCacheResolver, ComposableCacheResolver
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CacheResolver<T extends org.apache.geode.cache.GemFireCache> extends Supplier<T>
Strategy interface for resolving a instance reference to a GemFireCache.
Since:
2.3.0
See Also:
  • Supplier
  • Cache
  • GemFireCache
  • ClientCache
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    get()
    Gets the resolved instance of the GemFireCache.
    Resolves the instance reference to the GemFireCache implementation.
  • Method Details

    • get

      default T get()
      Gets the resolved instance of the GemFireCache.
      Specified by:
      get in interface Supplier<T extends org.apache.geode.cache.GemFireCache>
      Returns:
      the resolved instance of the GemFireCache.
      See Also:
    • resolve

      T resolve()
      Resolves the instance reference to the GemFireCache implementation.
      Returns:
      a instance reference to a GemFireCache implementation.