Class SingleCacheCacheResolver

java.lang.Object
org.springframework.data.gemfire.support.SingleCacheCacheResolver

public abstract class SingleCacheCacheResolver extends Object
CacheResolver implementation that resolves to a configured, single GemFireCache instance.
Since:
2.3.0
See Also:
  • Cache
  • GemFireCache
  • ClientCache
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static CacheResolver<org.apache.geode.cache.Cache>
    from(org.apache.geode.cache.Cache cache)
    Factory method used to resolve a single, configured instance of a peer Cache.
    static CacheResolver<org.apache.geode.cache.client.ClientCache>
    from(org.apache.geode.cache.client.ClientCache clientCache)
    Factory method used to resolve a single, configured instance of a peer ClientCache.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SingleCacheCacheResolver

      public SingleCacheCacheResolver()
  • Method Details

    • from

      public static CacheResolver<org.apache.geode.cache.Cache> from(@Nullable org.apache.geode.cache.Cache cache)
      Factory method used to resolve a single, configured instance of a peer Cache.
      Parameters:
      cache - Cache to resolve.
      Returns:
      a single, configured instance of a peer Cache.
      See Also:
    • from

      public static CacheResolver<org.apache.geode.cache.client.ClientCache> from(@Nullable org.apache.geode.cache.client.ClientCache clientCache)
      Factory method used to resolve a single, configured instance of a peer ClientCache.
      Parameters:
      clientCache - ClientCache to resolve.
      Returns:
      a single, configured instance of a peer ClientCache.
      See Also: