public class GemfireCacheManager extends AbstractCacheManager
CacheManager
backed by a Gemfire Cache
. Automatically
discovers the created caches (or Region
s 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, getCacheNames
protected Collection<Cache> loadCaches()
loadCaches
in class AbstractCacheManager
Cache
,
RegionService.rootRegions()
public Cache getCache(String name)
getCache
in interface CacheManager
getCache
in class AbstractCacheManager
name
- a String indicating the name of the Cache to get.Cache
public void setCache(Cache gemfireCache)
CacheManager
.gemfireCache
- the GemFire Peer Cache instance.Cache