Spring Data for VMware GemFire
Class SingleCacheCacheResolver
java.lang.Object
org.springframework.data.gemfire.support.SingleCacheCacheResolver
CacheResolver implementation that resolves to a configured, single GemFireCache instance.- Since:
- 2.3.0
- See Also:
-
CacheGemFireCacheClientCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheResolver<org.apache.geode.cache.Cache>from(org.apache.geode.cache.Cache cache) Factory method used to resolve a single, configured instance of a peerCache.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 peerClientCache.
-
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 peerCache.- Parameters:
cache-Cacheto resolve.- Returns:
- a single, configured instance of a peer
Cache. - See Also:
-
CacheResolverCache
-
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 peerClientCache.- Parameters:
clientCache-ClientCacheto resolve.- Returns:
- a single, configured instance of a peer
ClientCache. - See Also:
-
CacheResolverClientCache
-