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:
-
Cache
GemFireCache
ClientCache
-
Constructor Summary
-
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
-Cache
to resolve.- Returns:
- a single, configured instance of a peer
Cache
. - See Also:
-
CacheResolver
Cache
-
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
-ClientCache
to resolve.- Returns:
- a single, configured instance of a peer
ClientCache
. - See Also:
-
CacheResolver
ClientCache
-