Class PartitionAttributesFactoryBean<K,V>

java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<org.apache.geode.cache.PartitionAttributes<K,V>>
org.springframework.data.gemfire.PartitionAttributesFactoryBean<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.FactoryBean<org.apache.geode.cache.PartitionAttributes<K,V>>, org.springframework.beans.factory.InitializingBean

public class PartitionAttributesFactoryBean<K,V> extends AbstractFactoryBeanSupport<org.apache.geode.cache.PartitionAttributes<K,V>> implements org.springframework.beans.factory.InitializingBean
Spring FactoryBean for creating PartitionAttributes. Eliminates the need to use a XML 'factory-method' tag and allows the attributes properties to be set directly.
See Also:
  • FixedPartitionAttributes
  • PartitionAttributes
  • PartitionAttributesFactory
  • PartitionResolver
  • PartitionListener
  • FactoryBean
  • InitializingBean
  • AbstractFactoryBeanSupport
  • Constructor Details

    • PartitionAttributesFactoryBean

      public PartitionAttributesFactoryBean()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getObject

      public org.apache.geode.cache.PartitionAttributes<K,V> getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<K>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<K>
    • setColocatedWith

      public void setColocatedWith(String collocatedWith)
    • setFixedPartitionAttributes

      public void setFixedPartitionAttributes(List<org.apache.geode.cache.FixedPartitionAttributes> fixedPartitionAttributes)
    • setLocalMaxMemory

      public void setLocalMaxMemory(int mb)
    • setPartitionListeners

      public void setPartitionListeners(List<org.apache.geode.cache.partition.PartitionListener> partitionListeners)
    • setPartitionResolver

      public void setPartitionResolver(org.apache.geode.cache.PartitionResolver<K,V> resolver)
    • setRecoveryDelay

      public void setRecoveryDelay(long recoveryDelay)
    • setRedundantCopies

      public void setRedundantCopies(int redundantCopies)
    • setStartupRecoveryDelay

      public void setStartupRecoveryDelay(long startupRecoveryDelay)
    • setTotalMaxMemory

      public void setTotalMaxMemory(long megabytes)
    • setTotalNumBuckets

      public void setTotalNumBuckets(int numBuckets)