public class LocalRegionFactoryBean<K,V> extends RegionFactoryBean<K,V>
log
Constructor and Description |
---|
LocalRegionFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected void |
resolveDataPolicy(RegionFactory<K,V> regionFactory,
Boolean persistent,
DataPolicy dataPolicy)
Validates and sets the Data Policy on the RegionFactory used to create and configure the Region from this
FactoryBean.
|
protected void |
resolveDataPolicy(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(Scope scope)
Sets the region scope.
|
assertDataPolicyAndPersistentAttributesAreCompatible, createRegionFactory, destroy, getAttributes, getDataPolicy, getPhase, getShortcut, isAutoStartup, isNotPersistent, isPersistent, isPersistentUnspecified, isRunning, lookupFallback, mergePartitionAttributes, mergeRegionAttributes, postProcess, postProcess, setAsyncEventQueues, setAttributes, setCacheListeners, setCacheLoader, setCacheWriter, setClose, setDataPolicy, setDataPolicy, setDestroy, setDiskStoreName, setEnableGateway, setGatewaySenders, setHubId, setPersistent, setShortcut, setSnapshot, start, stop, stop
getLookupEnabled, getObject, getObjectType, getParent, getRegion, isSingleton, setBeanName, setCache, setLookupEnabled, setName, setParent, setRegionName
public void setScope(Scope scope)
RegionFactoryBean
RegionFactoryBean.setAttributes(RegionAttributes)
.setScope
in class RegionFactoryBean<K,V>
scope
- the region scopeScope
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class RegionFactoryBean<K,V>
Exception
protected void resolveDataPolicy(RegionFactory<K,V> regionFactory, Boolean persistent, DataPolicy dataPolicy)
RegionFactoryBean
resolveDataPolicy
in class RegionFactoryBean<K,V>
regionFactory
- the RegionFactory used by this FactoryBean to create and configure the Region.persistent
- a boolean value indicating whether the Region should be persistent and persist it's
data to disk.dataPolicy
- the configured Data Policy for the Region.RegionFactoryBean.resolveDataPolicy(com.gemstone.gemfire.cache.RegionFactory, Boolean, String)
,
DataPolicy
,
RegionFactory
protected void resolveDataPolicy(RegionFactory<K,V> regionFactory, Boolean persistent, String dataPolicy)
resolveDataPolicy
in class RegionFactoryBean<K,V>
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.DataPolicy
,
RegionFactory
,
RegionShortcut