Class 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>

public class LocalRegionFactoryBean<K,V> extends PeerRegionFactoryBean<K,V>
Spring FactoryBean used to create a RegionShortcut.LOCAL peer GemFireCache Region.
See Also:
  • Constructor Details

    • LocalRegionFactoryBean

      public LocalRegionFactoryBean()
  • Method Details

    • setScope

      public void setScope(org.apache.geode.cache.Scope scope)
      Description copied from class: PeerRegionFactoryBean
      Configures the Region's Scope, which affects data distribution and acknowledgement strategy (useful in consistency) for the Region.
      Overrides:
      setScope in class PeerRegionFactoryBean<K,V>
      Parameters:
      scope - Scope used to configure the Region's data distribution and acknowledgement strategy.
      See Also:
      • Scope
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Description copied from class: ConfigurableRegionFactoryBean
      Applies all RegionConfigurers.
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Overrides:
      afterPropertiesSet in class ConfigurableRegionFactoryBean<K,V>
      Throws:
      Exception - if initialization fails.
      See Also:
    • 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 class PeerRegionFactoryBean<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(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 class PeerRegionFactoryBean<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