public class GemfireCacheManager extends AbstractCacheManager
CacheManager backed by a Gemfire Cache. Automatically
discovers the created caches (or Regions in Gemfire terminology).Cache,
CacheManager,
AbstractCacheManager,
Cache,
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.
|
void |
setCache(Cache gemfireCache)
Sets the GemFire Cache backing this
CacheManager. |
void |
setRegions(Set<Region<?,?>> regions)
Sets the Regions to use (alternative to injecting the GemFire Cache).
|
addCache, afterPropertiesSet, decorateCache, getCacheNamesprotected 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.Cachepublic void setCache(Cache gemfireCache)
CacheManager.gemfireCache - the GemFire Peer Cache instance.Cache