Spring Data for VMware GemFire
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:
-
DataPolicyGemFireCacheRegionRegionFactoryRegionShortcut.LOCALPeerRegionFactoryBean
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.ResolvableRegionFactoryBean
CREATING_REGION_LOG_MESSAGE, REGION_FOUND_LOG_MESSAGE, REGION_NOT_FOUND_ERROR_MESSAGEFields inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
DEFAULT_SINGLETONFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies allRegionConfigurers.protected voidresolveDataPolicy(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 voidresolveDataPolicy(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.voidsetScope(org.apache.geode.cache.Scope scope) Configures theRegion'sScope, 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, stopMethods inherited from class org.springframework.data.gemfire.ConfigurableRegionFactoryBean
applyRegionConfigurers, applyRegionConfigurers, applyRegionConfigurers, getCompositeRegionConfigurer, setRegionConfigurers, setRegionConfigurersMethods inherited from class org.springframework.data.gemfire.ResolvableRegionFactoryBean
getCache, getLookupEnabled, getObject, getObjectType, getParent, getRegion, isLookupEnabled, loadSnapshot, postProcess, resolveRegionName, setCache, setLookupEnabled, setName, setParent, setRegion, setRegionName, setSnapshotMethods 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:PeerRegionFactoryBeanConfigures theRegion'sScope, which affects data distribution and acknowledgement strategy (useful in consistency) for theRegion.- Overrides:
setScopein classPeerRegionFactoryBean<K,V> - Parameters:
scope-Scopeused to configure theRegion'sdata distribution and acknowledgement strategy.- See Also:
-
Scope
-
afterPropertiesSet
Description copied from class:ConfigurableRegionFactoryBeanApplies allRegionConfigurers.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin 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:PeerRegionFactoryBeanValidates and sets the Data Policy on the RegionFactory used to create and configure the Region from this FactoryBean.- Overrides:
resolveDataPolicyin 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)DataPolicyRegionFactory
-
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:
resolveDataPolicyin 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:
-
DataPolicyRegionFactoryRegionShortcut
-