Class PartitionAttributesFactoryBean<K,V>

java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<PartitionAttributes<K,V>>
org.springframework.data.gemfire.PartitionAttributesFactoryBean<K,V>
All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, FactoryBean<PartitionAttributes<K,V>>, InitializingBean

public class PartitionAttributesFactoryBean<K,V> extends AbstractFactoryBeanSupport<PartitionAttributes<K,V>> implements 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.
Author:
Costin Leau, David Turanski, John Blum
See Also:
  • Constructor Details

    • PartitionAttributesFactoryBean

      public PartitionAttributesFactoryBean()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface InitializingBean
      Throws:
      Exception
    • getObject

      public PartitionAttributes<K,V> getObject() throws Exception
      Specified by:
      getObject in interface FactoryBean<K>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface FactoryBean<K>
    • setColocatedWith

      public void setColocatedWith(String collocatedWith)
    • setFixedPartitionAttributes

      public void setFixedPartitionAttributes(List<FixedPartitionAttributes> fixedPartitionAttributes)
    • setLocalMaxMemory

      public void setLocalMaxMemory(int mb)
    • setPartitionListeners

      public void setPartitionListeners(List<PartitionListener> partitionListeners)
    • setPartitionResolver

      public void setPartitionResolver(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)