Package org.springframework.data.gemfire
Class LocalRegionFactoryBean<K,V>
java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<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:
Aware,BeanClassLoaderAware,BeanFactoryAware,BeanNameAware,DisposableBean,FactoryBean<Region<K,,V>> InitializingBean,Lifecycle,Phased,SmartLifecycle,EvictingRegionFactoryBean,ExpiringRegionFactoryBean<K,V>
- Author:
- David Turanski, John Blum
- See Also:
-
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(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.protected voidresolveDataPolicy(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.voidMethods 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
Description copied from class:PeerRegionFactoryBean -
afterPropertiesSet
Description copied from class:ConfigurableRegionFactoryBeanApplies allRegionConfigurers.- Specified by:
afterPropertiesSetin interfaceInitializingBean- Overrides:
afterPropertiesSetin classConfigurableRegionFactoryBean<K,V> - Throws:
Exception- if initialization fails.- See Also:
-
resolveDataPolicy
protected void resolveDataPolicy(RegionFactory<K, V> regionFactory, Boolean persistent, 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:
-
resolveDataPolicy
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 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:
-