Class FixedPartitionAttributesFactoryBean

java.lang.Object
org.springframework.data.gemfire.FixedPartitionAttributesFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.FixedPartitionAttributes>, org.springframework.beans.factory.InitializingBean

public class FixedPartitionAttributesFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.FixedPartitionAttributes>, org.springframework.beans.factory.InitializingBean
Spring FactoryBean to create a instance of the FixedPartitionAttributes.
See Also:
  • FactoryBean
  • InitializingBean
  • FixedPartitionAttributes
  • Constructor Details

    • FixedPartitionAttributesFactoryBean

      public FixedPartitionAttributesFactoryBean()
  • 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.FixedPartitionAttributes getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.FixedPartitionAttributes>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.FixedPartitionAttributes>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.FixedPartitionAttributes>
    • setNumBuckets

      public void setNumBuckets(Integer numBuckets)
      Set the number of buckets in the Partition Region.
      Parameters:
      numBuckets - integer value indicating the number of buckets in the Partition Region.
    • setPartitionName

      public void setPartitionName(String partitionName)
      Set the name of the partition in the Partition Region.
      Parameters:
      partitionName - name of the partition.
    • setPrimary

      public void setPrimary(boolean primary)
      Sets whether this particular PARTITION Region is the primary (i.e. not secondary).
      Parameters:
      primary - a boolean value to indicate whether this PARTITION Region is the primary.