|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.gemfire.RegionLookupFactoryBean<K,V>
org.springframework.data.gemfire.client.ClientRegionFactoryBean<K,V>
public class ClientRegionFactoryBean<K,V>
Client extension for GemFire regions.
| Constructor Summary | |
|---|---|
ClientRegionFactoryBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
protected Region<K,V> |
lookupFallback(GemFireCache cache,
String regionName)
Fall back method in case the named region does not exist. |
protected void |
postProcess(Region<K,V> region)
|
void |
setAttributes(RegionAttributes<K,V> attributes)
Sets the region attributes used for the region used by this factory. |
void |
setBeanFactory(BeanFactory beanFactory)
|
void |
setCacheListeners(CacheListener<K,V>[] cacheListeners)
Sets the cache listeners used for the region used by this factory. |
void |
setClose(boolean close)
Indicates whether the region referred by this factory bean, will be closed on shutdown (default true). |
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 |
setInterests(Interest<K>[] interests)
Set the interests for this client region. |
void |
setPool(Pool pool)
Sets the pool used by this client. |
void |
setPoolName(String poolName)
Sets the pool name used by this client. |
void |
setShortcut(ClientRegionShortcut shortcut)
Initializes the client using a GemFire ClientRegionShortcut. |
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, getRegion, isSingleton, setBeanName, setCache, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientRegionFactoryBean()
| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class RegionLookupFactoryBean<K,V>Exception
protected Region<K,V> lookupFallback(GemFireCache cache,
String regionName)
throws Exception
RegionLookupFactoryBean
lookupFallback in class RegionLookupFactoryBean<K,V>cache - GemFire cacheregionName - region name
Exceptionprotected void postProcess(Region<K,V> region)
public void destroy()
throws Exception
destroy in interface DisposableBeanException
public void setBeanFactory(BeanFactory beanFactory)
throws BeansException
setBeanFactory in interface BeanFactoryAwareBeansExceptionpublic void setInterests(Interest<K>[] interests)
interests - the interests to setpublic void setPoolName(String poolName)
poolName - public void setPool(Pool pool)
pool - public void setShortcut(ClientRegionShortcut shortcut)
ClientRegionShortcut.
The recommended way for creating clients since it covers all the major scenarios with minimal
configuration.
shortcut - public void setDestroy(boolean destroy)
destroy - whether or not to destroy the regionsetClose(boolean)public void setClose(boolean close)
close - whether to close or not the regionsetDestroy(boolean)public 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 setDataPolicy(DataPolicy dataPolicy)
dataPolicy - the region data policypublic 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 | ||||||||