|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.gemfire.RegionLookupFactoryBean<K,V> org.springframework.data.gemfire.RegionFactoryBean<K,V>
public class RegionFactoryBean<K,V>
FactoryBean for creating generic GemFire Region
s. Will try to first locate the region (by name)
and, in case none if found, proceed to creating one using the given settings.
Field Summary | |
---|---|
protected Log |
log
|
Constructor Summary | |
---|---|
RegionFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
protected Region<K,V> |
lookupFallback(Cache cache,
String regionName)
Fall back method in case the named region does not exist. |
protected void |
postProcess(AttributesFactory<K,V> attrFactory)
Post-process the attribute factory object used for configuring the region of this factory bean during the initialization process. |
protected void |
postProcess(Region<K,V> region)
Post-process the region object for this factory bean during the initialization process. |
void |
setAttributes(RegionAttributes<K,V> attributes)
Sets the region attributes used for the region used by this factory. |
void |
setCacheListeners(CacheListener<K,V>[] cacheListeners)
Sets the cache listeners used for the region used by this factory. |
void |
setCacheLoader(CacheLoader<K,V> cacheLoader)
Sets the cache loader used for the region used by this factory. |
void |
setCacheWriter(CacheWriter<K,V> cacheWriter)
Sets the cache writer used for the region used by this factory. |
void |
setDataPolicy(DataPolicy dataPolicy)
Sets the data policy. |
void |
setDestroy(boolean destroy)
Indicates whether the region referred by this factory bean, will be destroyed on shutdown (default false). |
void |
setScope(Scope scope)
Sets the region scope. |
void |
setSnapshot(Resource snapshot)
Sets the snapshots used for loading a newly created region. |
Methods inherited from class org.springframework.data.gemfire.RegionLookupFactoryBean |
---|
getObject, getObjectType, isSingleton, setBeanName, setCache, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Log log
Constructor Detail |
---|
public RegionFactoryBean()
Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class RegionLookupFactoryBean<K,V>
Exception
protected Region<K,V> lookupFallback(Cache cache, String regionName) throws Exception
RegionLookupFactoryBean
lookupFallback
in class RegionLookupFactoryBean<K,V>
cache
- GemFire cacheregionName
- region name
Exception
protected void postProcess(AttributesFactory<K,V> attrFactory)
attrFactory
- attribute factoryprotected void postProcess(Region<K,V> region)
region
- public void destroy() throws Exception
destroy
in interface DisposableBean
Exception
public void setDestroy(boolean destroy)
destroy
- the destroy to setpublic void setSnapshot(Resource snapshot)
snapshot
- the snapshot to setRegionLookupFactoryBean.setName(String)
public void setCacheListeners(CacheListener<K,V>[] cacheListeners)
setAttributes(RegionAttributes)
.
cacheListeners
- the cacheListeners to set on a newly created regionpublic void setCacheLoader(CacheLoader<K,V> cacheLoader)
setAttributes(RegionAttributes)
.
cacheLoader
- the cacheLoader to set on a newly created regionpublic void setCacheWriter(CacheWriter<K,V> cacheWriter)
setAttributes(RegionAttributes)
.
cacheWriter
- the cacheWriter to set on a newly created regionpublic void setDataPolicy(DataPolicy dataPolicy)
setAttributes(RegionAttributes)
.
dataPolicy
- the region data policypublic void setScope(Scope scope)
setAttributes(RegionAttributes)
.
scope
- the region scopeScope
public void setAttributes(RegionAttributes<K,V> attributes)
attributes
- the attributes to set on a newly created region
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |