org.springframework.data.gemfire
Class LocalRegionFactoryBean<K,V>
java.lang.Object
org.springframework.data.gemfire.RegionLookupFactoryBean<K,V>
org.springframework.data.gemfire.RegionFactoryBean<K,V>
org.springframework.data.gemfire.LocalRegionFactoryBean<K,V>
- All Implemented Interfaces:
- Aware, BeanNameAware, DisposableBean, FactoryBean<com.gemstone.gemfire.cache.Region<K,V>>, InitializingBean, Lifecycle, Phased, SmartLifecycle
public class LocalRegionFactoryBean<K,V>
- extends RegionFactoryBean<K,V>
Method Summary |
void |
afterPropertiesSet()
|
protected void |
resolveDataPolicy(com.gemstone.gemfire.cache.RegionFactory<K,V> regionFactory,
Boolean persistent,
String dataPolicy)
Resolves the Data Policy used by this "local" GemFire Region (i.e. locally Scoped; Scope.LOCAL) based on the
enumerated value from com.gemstone.gemfire.cache.RegionShortcuts (LOCAL, LOCAL_PERSISTENT, LOCAL_HEAP_LRU,
LOCAL_OVERFLOW, and LOCAL_PERSISTENT_OVERFLOW), but without consideration of the Eviction settings. |
void |
setScope(com.gemstone.gemfire.cache.Scope scope)
Sets the region scope. |
Methods inherited from class org.springframework.data.gemfire.RegionFactoryBean |
assertDataPolicyAndPersistentAttributesAreCompatible, destroy, getPhase, isAutoStartup, isNotPersistent, isPersistent, isRunning, lookupFallback, postProcess, postProcess, setAsyncEventQueues, setAttributes, setCacheListeners, setCacheLoader, setCacheWriter, setClose, setDataPolicy, setDestroy, setDiskStoreName, setEnableGateway, setGatewaySenders, setHubId, setPersistent, setSnapshot, start, stop, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalRegionFactoryBean
public LocalRegionFactoryBean()
setScope
public void setScope(com.gemstone.gemfire.cache.Scope scope)
- Description copied from class:
RegionFactoryBean
- Sets the region scope. Used only when a new region is created. Overrides
the settings specified through
RegionFactoryBean.setAttributes(RegionAttributes)
.
- Overrides:
setScope
in class RegionFactoryBean<K,V>
- Parameters:
scope
- the region scope- See Also:
Scope
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Overrides:
afterPropertiesSet
in class RegionFactoryBean<K,V>
- Throws:
Exception
resolveDataPolicy
protected void resolveDataPolicy(com.gemstone.gemfire.cache.RegionFactory<K,V> regionFactory,
Boolean persistent,
String dataPolicy)
- Resolves the Data Policy used by this "local" GemFire Region (i.e. locally Scoped; Scope.LOCAL) based on the
enumerated value from com.gemstone.gemfire.cache.RegionShortcuts (LOCAL, LOCAL_PERSISTENT, LOCAL_HEAP_LRU,
LOCAL_OVERFLOW, and LOCAL_PERSISTENT_OVERFLOW), but without consideration of the Eviction settings.
- Overrides:
resolveDataPolicy
in class RegionFactoryBean<K,V>
- Parameters:
regionFactory
- the GemFire RegionFactory used to created the Local Region.persistent
- a boolean value indicating whether the Local Region should persist it's data.dataPolicy
- requested Data Policy as set by the user in the Spring GemFire configuration meta-data.- See Also:
DataPolicy
,
RegionFactory
,
RegionShortcut