public class GemfireCacheManager extends AbstractCacheManager
CacheManager backed by a Gemfire Cache. Automatically
discovers the created caches (or Regions in Gemfire terminology).Cache,
CacheManager,
AbstractCacheManager,
GemFireCache,
Region| Constructor and Description |
|---|
GemfireCacheManager() |
| Modifier and Type | Method and Description |
|---|---|
Cache |
getCache(String name)
Gets a Cache (GemFire Cache Region) by name.
|
protected Collection<Cache> |
loadCaches()
Loads the GemFire Cache Regions managed by this CacheManager.
|
protected GemfireCache |
newGemfireCache(com.gemstone.gemfire.cache.Region<?,?> region)
Constructs a new instance of
GemfireCache initialized with the given GemFire Region. |
void |
setCache(com.gemstone.gemfire.cache.GemFireCache gemfireCache)
Sets the GemFire Cache backing this
CacheManager. |
void |
setRegions(Set<com.gemstone.gemfire.cache.Region<?,?>> regions)
Sets the Regions to use (alternative to injecting the GemFire Cache).
|
addCache, afterPropertiesSet, decorateCache, getCacheNames, getMissingCache, initializeCaches, lookupCacheprotected Collection<Cache> loadCaches()
loadCaches in class AbstractCacheManagerCache,
RegionService.rootRegions()public Cache getCache(String name)
getCache in interface CacheManagergetCache in class AbstractCacheManagername - a String indicating the name of the Cache to get.Cacheprotected GemfireCache newGemfireCache(com.gemstone.gemfire.cache.Region<?,?> region)
GemfireCache initialized with the given GemFire Region.region - GemFire Region to wrap (adapt).GemfireCache initialized with the given GemFire Region.GemfireCache,
Regionpublic void setCache(com.gemstone.gemfire.cache.GemFireCache gemfireCache)
CacheManager.gemfireCache - the GemFire Peer Cache instance.Cachepublic void setRegions(Set<com.gemstone.gemfire.cache.Region<?,?>> regions)
regions - the Set of Regions (caches) managed by this CacheManager.RegionCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.