Package org.springframework.data.gemfire
Class LocalRegionFactoryBean<K,V>
java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<org.apache.geode.cache.Region<K,V>>
org.springframework.data.gemfire.ResolvableRegionFactoryBean<K,V>
org.springframework.data.gemfire.ConfigurableRegionFactoryBean<K,V>
org.springframework.data.gemfire.PeerRegionFactoryBean<K,V>
org.springframework.data.gemfire.LocalRegionFactoryBean<K,V>
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.Region<K,
,V>> org.springframework.beans.factory.InitializingBean
,org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
,EvictingRegionFactoryBean
,ExpiringRegionFactoryBean<K,
V>
Spring
FactoryBean
used to create a RegionShortcut.LOCAL
peer GemFireCache
Region
.- See Also:
-
DataPolicy
GemFireCache
Region
RegionFactory
RegionShortcut.LOCAL
PeerRegionFactoryBean
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.ResolvableRegionFactoryBean
CREATING_REGION_LOG_MESSAGE, REGION_FOUND_LOG_MESSAGE, REGION_NOT_FOUND_ERROR_MESSAGE
Fields inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
DEFAULT_SINGLETON
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies allRegionConfigurers
.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.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.void
setScope
(org.apache.geode.cache.Scope scope) Configures theRegion's
Scope
, which affects data distribution and acknowledgement strategy (useful in consistency) for theRegion
.Methods inherited from class org.springframework.data.gemfire.PeerRegionFactoryBean
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, stop
Methods inherited from class org.springframework.data.gemfire.ConfigurableRegionFactoryBean
applyRegionConfigurers, applyRegionConfigurers, applyRegionConfigurers, getCompositeRegionConfigurer, setRegionConfigurers, setRegionConfigurers
Methods inherited from class org.springframework.data.gemfire.ResolvableRegionFactoryBean
getCache, getLookupEnabled, getObject, getObjectType, getParent, getRegion, isLookupEnabled, loadSnapshot, postProcess, resolveRegionName, setCache, setLookupEnabled, setName, setParent, setRegion, setRegionName, setSnapshot
Methods inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
getBeanClassLoader, getBeanFactory, getBeanName, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory, setBeanName
-
Constructor Details
-
LocalRegionFactoryBean
public LocalRegionFactoryBean()
-
-
Method Details
-
setScope
public void setScope(org.apache.geode.cache.Scope scope) Description copied from class:PeerRegionFactoryBean
Configures theRegion's
Scope
, which affects data distribution and acknowledgement strategy (useful in consistency) for theRegion
.- Overrides:
setScope
in classPeerRegionFactoryBean<K,
V> - Parameters:
scope
-Scope
used to configure theRegion's
data distribution and acknowledgement strategy.- See Also:
-
Scope
-
afterPropertiesSet
Description copied from class:ConfigurableRegionFactoryBean
Applies allRegionConfigurers
.- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in classConfigurableRegionFactoryBean<K,
V> - Throws:
Exception
- if initialization fails.- See Also:
-
InitializingBean.afterPropertiesSet()
ResolvableRegionFactoryBean.createRegion(GemFireCache, String)
-
resolveDataPolicy
protected void resolveDataPolicy(org.apache.geode.cache.RegionFactory<K, V> regionFactory, Boolean persistent, org.apache.geode.cache.DataPolicy dataPolicy) Description copied from class:PeerRegionFactoryBean
Validates and sets the Data Policy on the RegionFactory used to create and configure the Region from this FactoryBean.- Overrides:
resolveDataPolicy
in classPeerRegionFactoryBean<K,
V> - Parameters:
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.- See Also:
-
PeerRegionFactoryBean.resolveDataPolicy(RegionFactory, Boolean, String)
DataPolicy
RegionFactory
-
resolveDataPolicy
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.- Overrides:
resolveDataPolicy
in classPeerRegionFactoryBean<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
-