public class LocalRegionFactoryBean<K,V> extends PeerRegionFactoryBean<K,V>
DataPolicy,
GemFireCache,
Region,
RegionFactory,
RegionShortcut.LOCAL,
PeerRegionFactoryBeanCREATING_REGION_LOG_MESSAGE, REGION_FOUND_LOG_MESSAGE, REGION_NOT_FOUND_ERROR_MESSAGEDEFAULT_SINGLETONDEFAULT_PHASEOBJECT_TYPE_ATTRIBUTE| Constructor and Description |
|---|
LocalRegionFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Applies all
RegionConfigurers. |
protected void |
resolveDataPolicy(org.apache.geode.cache.RegionFactory<K,V> regionFactory,
Boolean persistent,
org.apache.geode.cache.DataPolicy dataPolicy)
Validates and sets the Data Policy on the RegionFactory used to create and configure the Region from this
FactoryBean.
|
protected void |
resolveDataPolicy(org.apache.geode.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 org.apache.geode.cache.RegionShortcuts (LOCAL, LOCAL_PERSISTENT, LOCAL_HEAP_LRU,
LOCAL_OVERFLOW, and LOCAL_PERSISTENT_OVERFLOW), but without consideration of the Eviction settings.
|
void |
setScope(org.apache.geode.cache.Scope scope)
Configures the
Region's Scope, which affects data distribution
and acknowledgement strategy (useful in consistency) for the Region. |
addAsyncEventQueueIds, addAsyncEventQueues, addGatewaySenders, addGatewaySendersIds, configure, createRegion, createRegionFactory, destroy, getAttributes, getDataPolicy, getOffHeap, getPhase, getScope, getShortcut, getStatisticsEnabled, isAutoStartup, isNotPersistent, isOffHeap, isPersistent, isRunning, isStatisticsEnabled, mergePartitionAttributes, mergeRegionAttributes, postProcess, resolveStatisticsEnabled, setAsyncEventQueueIds, setAsyncEventQueues, setAttributes, setCacheListeners, setCacheLoader, setCacheWriter, setClose, setCompressor, setCustomEntryIdleTimeout, setCustomEntryTimeToLive, setDataPolicy, setDestroy, setDiskStoreName, setEntryIdleTimeout, setEntryTimeToLive, setEvictionAttributes, setGatewaySenderIds, setGatewaySenders, setKeyConstraint, setOffHeap, setPersistent, setRegionIdleTimeout, setRegionTimeToLive, setShortcut, setStatisticsEnabled, setValueConstraint, start, stop, stopapplyRegionConfigurers, applyRegionConfigurers, applyRegionConfigurers, getCompositeRegionConfigurer, setRegionConfigurers, setRegionConfigurersgetCache, getLookupEnabled, getObject, getObjectType, getParent, getRegion, isLookupEnabled, loadSnapshot, postProcess, resolveRegionName, setCache, setLookupEnabled, setName, setParent, setRegion, setRegionName, setSnapshotgetBeanClassLoader, getBeanFactory, getBeanName, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory, setBeanNamepublic void setScope(org.apache.geode.cache.Scope scope)
PeerRegionFactoryBeanRegion's Scope, which affects data distribution
and acknowledgement strategy (useful in consistency) for the Region.setScope in class PeerRegionFactoryBean<K,V>scope - Scope used to configure the Region's data distribution
and acknowledgement strategy.Scopepublic void afterPropertiesSet()
throws Exception
ConfigurableRegionFactoryBeanRegionConfigurers.afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class ConfigurableRegionFactoryBean<K,V>Exception - if initialization fails.InitializingBean.afterPropertiesSet(),
ResolvableRegionFactoryBean.createRegion(GemFireCache, String)protected void resolveDataPolicy(org.apache.geode.cache.RegionFactory<K,V> regionFactory, Boolean persistent, org.apache.geode.cache.DataPolicy dataPolicy)
PeerRegionFactoryBeanresolveDataPolicy in class PeerRegionFactoryBean<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.PeerRegionFactoryBean.resolveDataPolicy(org.apache.geode.cache.RegionFactory, Boolean, String),
DataPolicy,
RegionFactoryprotected void resolveDataPolicy(org.apache.geode.cache.RegionFactory<K,V> regionFactory, Boolean persistent, String dataPolicy)
resolveDataPolicy in class PeerRegionFactoryBean<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,
RegionShortcutCopyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.