Spring Data for VMware GemFire
Package org.springframework.data.gemfire
Class PeerRegionFactoryBean<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>
- 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>
- Direct Known Subclasses:
GenericRegionFactoryBean,LocalRegionFactoryBean,PartitionedRegionFactoryBean,ReplicatedRegionFactoryBean
public abstract class PeerRegionFactoryBean<K,V>
extends ConfigurableRegionFactoryBean<K,V>
implements org.springframework.beans.factory.DisposableBean, EvictingRegionFactoryBean, ExpiringRegionFactoryBean<K,V>, org.springframework.context.SmartLifecycle
Spring
FactoryBean and abstract base class extended by other SDG FactoryBeans
used to construct, configure and initialize peer Regions.
This FactoryBean allows for very easy and flexible creation of peer Regions.
For client Regions, see the ClientRegionFactoryBean.- See Also:
-
CacheCacheListenerCacheLoaderCacheWriterCustomExpiryDataPolicyDiskStoreEvictionAttributesExpirationAttributesGemFireCachePartitionAttributesRegionRegionAttributesRegionFactoryRegionShortcutScopeAsyncEventQueueGatewaySenderCompressorDisposableBeanSmartLifecycleConfigurableRegionFactoryBeanResolvableRegionFactoryBeanClientRegionFactoryBeanEvictingRegionFactoryBeanExpiringRegionFactoryBeanRegionConfigurer
-
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 TypeMethodDescriptionvoidaddAsyncEventQueueIds(String[] asyncEventQueueIds) Registers the array ofAsyncEventQueues(AEQ) with thisRegionbyIDby appending to the already existing, registered AEQs for thisRegion.voidaddAsyncEventQueues(org.apache.geode.cache.asyncqueue.AsyncEventQueue[] asyncEventQueues) Registers the array ofAsyncEventQueues(AEQ) with thisRegionby appending to the already existing, registered AEQs for thisRegion.voidaddGatewaySenders(org.apache.geode.cache.wan.GatewaySender[] gatewaySenders) Registers the array ofGatewaySenderswith thisRegionby appending to the already existing, registeredGatewaySendersfor thisRegion.voidaddGatewaySendersIds(String[] gatewaySenderIds) Registers the array ofGatewaySenderIDswith thisRegionby appending to the already existing, registeredGatewaySendersfor thisRegion.Configures theRegionFactorybased on the configuration settings of thisPeerRegionFactoryBean.createRegion(org.apache.geode.cache.GemFireCache gemfireCache, String regionName) Creates a newRegionwith the givenname.createRegionFactory(org.apache.geode.cache.Cache cache) Create a new instance ofRegionFactoryinitialized with the givenCachethat is then used to construct, configure and initialize theRegionspecified by thisPeerRegionFactoryBean.voiddestroy()Closes and destroys thisRegion.Returns theRegionAttributesused to configure thisRegion.org.apache.geode.cache.DataPolicyReturns resolvedDataPolicyas configured with theRegionFactorywhen creating thisRegion.Returns aBooleanvalue indicating whether off-heap memory was enabled for thisRegion.intgetPhase()org.apache.geode.cache.ScopegetScope()Returns the configuredScopeof theRegionaffecting data distribution and acknowledgement strategy (useful in consistency) for theRegion.org.apache.geode.cache.RegionShortcutReturns the configuredRegionShortcut.booleanprotected booleanReturns true when the user explicitly specified a value for the persistent attribute and it is false.booleanReturns a boolean value indicating whether off-heap memory use was enabled for thisRegion.protected booleanReturns true when the user explicitly specified a value for the persistent attribute and it is true.booleanbooleanprotected <K,V> void mergePartitionAttributes(org.apache.geode.cache.RegionFactory<K, V> regionFactory, org.apache.geode.cache.RegionAttributes<K, V> regionAttributes) Merges theRegionAttributesinto theRegionFactory.protected <K,V> org.apache.geode.cache.RegionFactory<K, V> mergeRegionAttributes(org.apache.geode.cache.RegionFactory<K, V> regionFactory, org.apache.geode.cache.RegionAttributes<K, V> regionAttributes) Intelligently merges the given RegionAttributes with the configuration setting of the RegionFactory.postProcess(org.apache.geode.cache.RegionFactory<K, V> regionFactory) Post-process theRegionFactoryused to create theRegionspecified by thisPeerRegionFactoryBeanduring initialization.protected voidresolveDataPolicy(org.apache.geode.cache.RegionFactory<K, V> regionFactory, Boolean persistent, String dataPolicy) Validates the configured Data Policy and may override it, taking into account the 'persistent' attribute and constraints for the Region type.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.protected booleanvoidsetAsyncEventQueueIds(String[] asyncEventQueueIds) voidsetAsyncEventQueues(org.apache.geode.cache.asyncqueue.AsyncEventQueue[] asyncEventQueues) Configures an array ofAsyncEventQueuesfor thisRegion, which are used to perform asynchronous data access operations, e.g.voidsetAttributes(org.apache.geode.cache.RegionAttributes<K, V> attributes) Sets theRegionAttributesused to configure thisRegion.voidsetCacheListeners(org.apache.geode.cache.CacheListener<K, V>[] cacheListeners) ConfiguresCacheListenersused to listen for entry events on thisRegion.voidsetCacheLoader(org.apache.geode.cache.CacheLoader<K, V> cacheLoader) Configures theCacheLoaderused by thisRegionto perform synchronous read-through data access operations to an underlying, external data source.voidsetCacheWriter(org.apache.geode.cache.CacheWriter<K, V> cacheWriter) Configures theCacheWriterused by thisRegionto perform synchronous write-through data access operations to an underlying, external data source.voidsetClose(boolean close) Configure whether to close this Region during shutdown.voidsetCompressor(org.apache.geode.compression.Compressor compressor) Configures theCompressorused to compress thisRegion'sdata.voidsetCustomEntryIdleTimeout(org.apache.geode.cache.CustomExpiry<K, V> customEntryIdleTimeout) voidsetCustomEntryTimeToLive(org.apache.geode.cache.CustomExpiry<K, V> customEntryTimeToLive) voidsetDataPolicy(org.apache.geode.cache.DataPolicy dataPolicy) Configure theDataPolicyfor thisRegion.voidsetDestroy(boolean destroy) Configure whether to destroy thisRegionduring shutdown.voidsetDiskStoreName(String diskStoreName) voidsetEntryIdleTimeout(org.apache.geode.cache.ExpirationAttributes entryIdleTimeout) voidsetEntryTimeToLive(org.apache.geode.cache.ExpirationAttributes entryTimeToLive) voidsetEvictionAttributes(org.apache.geode.cache.EvictionAttributes evictionAttributes) voidsetGatewaySenderIds(String[] gatewaySenderIds) Configures theGatewaySendersbyIDused to send data and events from thisRegionto a matchingRegionin a remote cluster.voidsetGatewaySenders(org.apache.geode.cache.wan.GatewaySender[] gatewaySenders) Configures theGatewaySendersused to send data and events from thisRegionto a matchingRegionin a remote cluster.voidsetKeyConstraint(Class<K> keyConstraint) voidsetOffHeap(Boolean offHeap) Configures thisRegionwith the capability to store data in off-heap memory.voidsetPersistent(Boolean persistent) Configures whether to enable persistence for thisRegion.voidsetRegionIdleTimeout(org.apache.geode.cache.ExpirationAttributes regionIdleTimeout) voidsetRegionTimeToLive(org.apache.geode.cache.ExpirationAttributes regionTimeToLive) voidsetScope(org.apache.geode.cache.Scope scope) Configures theRegion'sScope, which affects data distribution and acknowledgement strategy (useful in consistency) for theRegion.voidsetShortcut(org.apache.geode.cache.RegionShortcut shortcut) Configures theRegionwith the givenRegionShortcut.voidsetStatisticsEnabled(Boolean statisticsEnabled) voidsetValueConstraint(Class<V> valueConstraint) voidstart()voidstop()voidMethods inherited from class org.springframework.data.gemfire.ConfigurableRegionFactoryBean
afterPropertiesSet, 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
-
PeerRegionFactoryBean
public PeerRegionFactoryBean()
-
-
Method Details
-
createRegion
protected org.apache.geode.cache.Region<K,V> createRegion(org.apache.geode.cache.GemFireCache gemfireCache, String regionName) Creates a newRegionwith the givenname.- Overrides:
createRegionin classResolvableRegionFactoryBean<K,V> - Parameters:
gemfireCache- reference to theGemFireCache.regionName-nameof the newRegion.- Returns:
- a new
Regionwith the givenname. - See Also:
-
GemFireCacheRegion
-
createRegionFactory
protected org.apache.geode.cache.RegionFactory<K,V> createRegionFactory(org.apache.geode.cache.Cache cache) Create a new instance ofRegionFactoryinitialized with the givenCachethat is then used to construct, configure and initialize theRegionspecified by thisPeerRegionFactoryBean.- Parameters:
cache- reference to theCache.- Returns:
- a
RegionFactoryused to construct, configure and initialize theRegionspecified by thisPeerRegionFactoryBean. - See Also:
-
Cache.createRegionFactory(RegionShortcut)Cache.createRegionFactory(RegionAttributes)Cache.createRegionFactory()RegionFactory
-
configure
protected org.apache.geode.cache.RegionFactory<K,V> configure(org.apache.geode.cache.RegionFactory<K, V> regionFactory) Configures theRegionFactorybased on the configuration settings of thisPeerRegionFactoryBean.- Parameters:
regionFactory-RegionFactoryto configure- Returns:
- the given
RegionFactory. - See Also:
-
RegionFactory
-
postProcess
protected org.apache.geode.cache.RegionFactory<K,V> postProcess(org.apache.geode.cache.RegionFactory<K, V> regionFactory) Post-process theRegionFactoryused to create theRegionspecified by thisPeerRegionFactoryBeanduring initialization. TheRegionFactoryhas been already constructed, configured and initialized by thisPeerRegionFactoryBeanbefore this method gets invoked.- Parameters:
regionFactory-RegionFactoryused to create theRegion.- Returns:
- the given
RegionFactory. - See Also:
-
RegionFactory
-
mergeRegionAttributes
protected <K,V> org.apache.geode.cache.RegionFactory<K,V> mergeRegionAttributes(org.apache.geode.cache.RegionFactory<K, V> regionFactory, org.apache.geode.cache.RegionAttributes<K, V> regionAttributes) Intelligently merges the given RegionAttributes with the configuration setting of the RegionFactory. This method is used to merge the RegionAttributes and PartitionAttributes with the RegionFactory that is created when the user specified a RegionShortcut. This method gets called by the createRegionFactory method depending upon the value passed to the Cache.createRegionFactory() method (i.e. whether there was a RegionShortcut specified or not).- Type Parameters:
K- the Class type fo the Region key.V- the Class type of the Region value.- Parameters:
regionFactory- the GemFire RegionFactory used to configure and create the Region that is the product of this PeerRegionFactoryBean.regionAttributes- the RegionAttributes containing the Region configuration settings to merge to the RegionFactory.- Returns:
- the RegionFactory with the configuration settings of the RegionAttributes merged.
- See Also:
-
isUserSpecifiedEvictionAttributes(RegionAttributes)validateRegionAttributes(RegionAttributes)RegionAttributesRegionFactory
-
mergePartitionAttributes
protected <K,V> void mergePartitionAttributes(org.apache.geode.cache.RegionFactory<K, V> regionFactory, org.apache.geode.cache.RegionAttributes<K, V> regionAttributes) Merges theRegionAttributesinto theRegionFactory.- Parameters:
regionFactory-RegionFactoryto configure.regionAttributes-RegionAttributesused to configure theRegionFactoryif not null.- See Also:
-
RegionAttributesRegionFactory
-
isNotPersistent
protected boolean isNotPersistent()Returns true when the user explicitly specified a value for the persistent attribute and it is false. If the persistent attribute was not explicitly specified, then the persistence setting is implicitly undefined and will be determined by the Data Policy.- Returns:
- true when the user specified an explicit value for the persistent attribute and it is false; false otherwise.
- See Also:
-
isPersistent
protected boolean isPersistent()Returns true when the user explicitly specified a value for the persistent attribute and it is true. If the persistent attribute was not explicitly specified, then the persistence setting is implicitly undefined and will be determined by the Data Policy.- Returns:
- true when the user specified an explicit value for the persistent attribute and it is true; false otherwise.
- See Also:
-
resolveDataPolicy
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.- 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(RegionFactory, Boolean, String)DataPolicyRegionFactory
-
resolveDataPolicy
protected void resolveDataPolicy(org.apache.geode.cache.RegionFactory<K, V> regionFactory, Boolean persistent, String dataPolicy) Validates the configured Data Policy and may override it, taking into account the 'persistent' attribute and constraints for the Region type.- Parameters:
regionFactory- the GemFire RegionFactory used to create the desired Region.persistent- a boolean value indicating whether the Region should persist it's data to disk.dataPolicy- requested Data Policy as set by the user in the Spring GemFire configuration meta-data.- See Also:
-
DataPolicyRegionFactory
-
destroy
Closes and destroys thisRegion.- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception- ifdestroy()fails.- See Also:
-
DisposableBeanRegion.close()Region.destroyRegion()
-
setAsyncEventQueues
public void setAsyncEventQueues(@NonNull org.apache.geode.cache.asyncqueue.AsyncEventQueue[] asyncEventQueues) Configures an array ofAsyncEventQueuesfor thisRegion, which are used to perform asynchronous data access operations, e.g. asynchronous, write-behind operations. This method clears any existing, registeredAsyncEventQueues(AEQ) already associated with thisRegion. UseaddAsyncEventQueues(AsyncEventQueue[])oraddAsyncEventQueueIds(String[])to append to the existing AEQs already registered instead.- Parameters:
asyncEventQueues- array ofAsyncEventQueuesregistered with and used by thisRegionto perform asynchronous data access operations.- See Also:
-
setAsyncEventQueueIds
Configures an array ofAsyncEventQueues(AEQ) for thisRegionbyAEQ ID. This method clears any existing, registeredAsyncEventQueues(AEQ) already associated with thisRegionby AEQ ID. UseaddAsyncEventQueues(AsyncEventQueue[])oraddAsyncEventQueueIds(String[])to append to the existing AEQs already registered instead. oraddAsyncEventQueueIds(String[])to append to the existing AEQs already registered instead. -
addAsyncEventQueues
public void addAsyncEventQueues(@NonNull org.apache.geode.cache.asyncqueue.AsyncEventQueue[] asyncEventQueues) Registers the array ofAsyncEventQueues(AEQ) with thisRegionby appending to the already existing, registered AEQs for thisRegion.- Parameters:
asyncEventQueues- array ofAsyncEventQueuesto register with thisRegion.- See Also:
-
addAsyncEventQueueIds
Registers the array ofAsyncEventQueues(AEQ) with thisRegionbyIDby appending to the already existing, registered AEQs for thisRegion.- Parameters:
asyncEventQueueIds- array ofAsyncEventQueueIDsto register with thisRegion.- See Also:
-
setAttributes
Sets theRegionAttributesused to configure thisRegion. SpecifyingRegionAttributesallows full control in configuring variousRegionsettings. Used only when theRegionis created and not when theRegionis looked up.- Parameters:
attributes-RegionAttributesused to configure thisRegion.- See Also:
-
RegionAttributes
-
getAttributes
Returns theRegionAttributesused to configure thisRegion.- Returns:
- the
RegionAttributesused to configure thisRegion. - See Also:
-
RegionAttributes
-
setCacheListeners
ConfiguresCacheListenersused to listen for entry events on thisRegion. Used only when a newRegionis created and notlooked up. Overrides theRegionsettings specified inRegionAttributesset withsetAttributes(RegionAttributes).- Parameters:
cacheListeners- arrayCacheListenersto register with thisRegion.- See Also:
-
CacheListener
-
setCacheLoader
Configures theCacheLoaderused by thisRegionto perform synchronous read-through data access operations to an underlying, external data source. Used only when a newRegionis created and notlooked up. Overrides theRegionsettings specified inRegionAttributesset withsetAttributes(RegionAttributes).- Parameters:
cacheLoader-CacheLoaderto register for thisRegion.- See Also:
-
CacheLoader
-
setCacheWriter
Configures theCacheWriterused by thisRegionto perform synchronous write-through data access operations to an underlying, external data source. Used only when a newRegionis created and notlooked up. Overrides theRegionsettings specified inRegionAttributesset withsetAttributes(RegionAttributes).- Parameters:
cacheWriter-CacheWriterto register for thisRegion.- See Also:
-
CacheWriter
-
setClose
public void setClose(boolean close) Configure whether to close this Region during shutdown. Defaults to true.- Parameters:
close- boolean value indicating whether thisRegionshould be closed during shutdown.- See Also:
-
setCompressor
public void setCompressor(org.apache.geode.compression.Compressor compressor) Configures theCompressorused to compress thisRegion'sdata.- Parameters:
compressor-Compressorused to compress thisRegion'sdata.- See Also:
-
Compressor
-
setCustomEntryIdleTimeout
public void setCustomEntryIdleTimeout(org.apache.geode.cache.CustomExpiry<K, V> customEntryIdleTimeout) - Specified by:
setCustomEntryIdleTimeoutin interfaceExpiringRegionFactoryBean<K,V>
-
setCustomEntryTimeToLive
public void setCustomEntryTimeToLive(org.apache.geode.cache.CustomExpiry<K, V> customEntryTimeToLive) - Specified by:
setCustomEntryTimeToLivein interfaceExpiringRegionFactoryBean<K,V>
-
setDestroy
public void setDestroy(boolean destroy) Configure whether to destroy thisRegionduring shutdown. Defaults to false.- Parameters:
destroy- value indicating whether thisRegionshould be destroyed during shutdown.- See Also:
-
setDataPolicy
public void setDataPolicy(org.apache.geode.cache.DataPolicy dataPolicy) Configure theDataPolicyfor thisRegion.- Parameters:
dataPolicy-DataPolicyused when configuring thisRegion.- Since:
- 1.4.0
- See Also:
-
DataPolicy
-
getDataPolicy
public org.apache.geode.cache.DataPolicy getDataPolicy()Returns resolvedDataPolicyas configured with theRegionFactorywhen creating thisRegion.- Returns:
- the configured, resolved
DataPolicyused by thisRegion. - Throws:
IllegalStateException- if theDataPolicyhas not been configured or is not resolvable.- See Also:
-
DataPolicy
-
setDiskStoreName
- Parameters:
diskStoreName-Stringcontaining the name of theDiskStorebean configured for thisRegion.
-
setEntryIdleTimeout
public void setEntryIdleTimeout(org.apache.geode.cache.ExpirationAttributes entryIdleTimeout) - Specified by:
setEntryIdleTimeoutin interfaceExpiringRegionFactoryBean<K,V>
-
setEntryTimeToLive
public void setEntryTimeToLive(org.apache.geode.cache.ExpirationAttributes entryTimeToLive) - Specified by:
setEntryTimeToLivein interfaceExpiringRegionFactoryBean<K,V>
-
setEvictionAttributes
public void setEvictionAttributes(org.apache.geode.cache.EvictionAttributes evictionAttributes) - Specified by:
setEvictionAttributesin interfaceEvictingRegionFactoryBean
-
setGatewaySenders
public void setGatewaySenders(@NonNull org.apache.geode.cache.wan.GatewaySender[] gatewaySenders) Configures theGatewaySendersused to send data and events from thisRegionto a matchingRegionin a remote cluster. This method clears all existing, registeredGatewaySendersalready associated with thisRegion. UseaddGatewaySenders(GatewaySender[])oraddGatewaySendersIds(String[])to append to the existing, registeredGatewaySendersfor thisRegion.- Parameters:
gatewaySenders-GatewaySendersused to send data and events from thisRegionto a matchingRegionin a remote cluster.- See Also:
-
setGatewaySenderIds
Configures theGatewaySendersbyIDused to send data and events from thisRegionto a matchingRegionin a remote cluster. This method clears all existing, registeredGatewaySendersalready associated with thisRegion. UseaddGatewaySenders(GatewaySender[])oraddGatewaySendersIds(String[])to append to the existing, registeredGatewaySendersfor thisRegion. -
addGatewaySenders
public void addGatewaySenders(@NonNull org.apache.geode.cache.wan.GatewaySender[] gatewaySenders) Registers the array ofGatewaySenderswith thisRegionby appending to the already existing, registeredGatewaySendersfor thisRegion.- Parameters:
gatewaySenders- array ofGatewaySendersto register with thisRegion.- See Also:
-
addGatewaySendersIds
Registers the array ofGatewaySenderIDswith thisRegionby appending to the already existing, registeredGatewaySendersfor thisRegion.- Parameters:
gatewaySenderIds- array ofGatewaySenderIDsto register with thisRegion.- See Also:
-
setOffHeap
Configures thisRegionwith the capability to store data in off-heap memory.- Parameters:
offHeap-Booleanvalue indicating whether to enable the use of off-heap memory for thisRegion.- See Also:
-
RegionFactory.setOffHeap(boolean)
-
getOffHeap
Returns aBooleanvalue indicating whether off-heap memory was enabled for thisRegion. Off-heap memory will be enabled for thisRegionif this method returns a non-null,Booleanvalue evaluating to true.- Returns:
- a
Booleanvalue indicating whether off-heap memory use is enabled for thisRegion.
-
isOffHeap
public boolean isOffHeap()Returns a boolean value indicating whether off-heap memory use was enabled for thisRegion.- Returns:
- a boolean value indicating whether off-heap memory use was enabled for
this
Region. - See Also:
-
setKeyConstraint
-
setPersistent
Configures whether to enable persistence for thisRegion. When persistence is enable, then data in theRegionis persisted to disk using the configured, specifiedDiskStore, or the DEFAULTDiskStoreif aDiskStorewas not explicitly configured.- Parameters:
persistent-Booleanvalue indicating whether to enaable persistence for thisRegion.
-
setRegionIdleTimeout
public void setRegionIdleTimeout(org.apache.geode.cache.ExpirationAttributes regionIdleTimeout) - Specified by:
setRegionIdleTimeoutin interfaceExpiringRegionFactoryBean<K,V>
-
setRegionTimeToLive
public void setRegionTimeToLive(org.apache.geode.cache.ExpirationAttributes regionTimeToLive) - Specified by:
setRegionTimeToLivein interfaceExpiringRegionFactoryBean<K,V>
-
setScope
public void setScope(org.apache.geode.cache.Scope scope) Configures theRegion'sScope, which affects data distribution and acknowledgement strategy (useful in consistency) for theRegion.- Parameters:
scope-Scopeused to configure theRegion'sdata distribution and acknowledgement strategy.- See Also:
-
Scope
-
getScope
public org.apache.geode.cache.Scope getScope()Returns the configuredScopeof theRegionaffecting data distribution and acknowledgement strategy (useful in consistency) for theRegion.- Returns:
- the configured
Scopeof theRegion. - See Also:
-
Scope
-
setShortcut
public void setShortcut(org.apache.geode.cache.RegionShortcut shortcut) Configures theRegionwith the givenRegionShortcut.- Parameters:
shortcut-RegionShortcutused to configure pre-defined defaults for theRegion.- See Also:
-
RegionShortcut
-
getShortcut
public org.apache.geode.cache.RegionShortcut getShortcut()Returns the configuredRegionShortcut.- Returns:
- the configured
RegionShortcut. - See Also:
-
RegionShortcut
-
setStatisticsEnabled
-
getStatisticsEnabled
-
isStatisticsEnabled
public boolean isStatisticsEnabled() -
resolveStatisticsEnabled
protected boolean resolveStatisticsEnabled() -
setValueConstraint
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
- Specified by:
stopin interfaceorg.springframework.context.SmartLifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
getPhase
public int getPhase()- Specified by:
getPhasein interfaceorg.springframework.context.Phased- Specified by:
getPhasein interfaceorg.springframework.context.SmartLifecycle
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-