org.springframework.data.gemfire
Class PartitionAttributesFactoryBean
java.lang.Object
org.springframework.data.gemfire.PartitionAttributesFactoryBean
- All Implemented Interfaces:
- FactoryBean<com.gemstone.gemfire.cache.PartitionAttributes>, InitializingBean
public class PartitionAttributesFactoryBean
- extends Object
- implements FactoryBean<com.gemstone.gemfire.cache.PartitionAttributes>, InitializingBean
Spring-friendly bean for creating PartitionAttributes
. Eliminates the
need of using a XML 'factory-method' tag and allows the attributes properties
to be set directly.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartitionAttributesFactoryBean
public PartitionAttributesFactoryBean()
getObject
public com.gemstone.gemfire.cache.PartitionAttributes getObject()
throws Exception
- Specified by:
getObject
in interface FactoryBean<com.gemstone.gemfire.cache.PartitionAttributes>
- Throws:
Exception
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interface FactoryBean<com.gemstone.gemfire.cache.PartitionAttributes>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface FactoryBean<com.gemstone.gemfire.cache.PartitionAttributes>
setColocatedWith
public void setColocatedWith(String colocatedRegionFullPath)
setFixedPartitionAttributes
public void setFixedPartitionAttributes(List<com.gemstone.gemfire.cache.FixedPartitionAttributes> fixedPartitionAttributes)
setLocalMaxMemory
public void setLocalMaxMemory(int mb)
setPartitionResolver
public void setPartitionResolver(com.gemstone.gemfire.cache.PartitionResolver resolver)
setPartitionListeners
public void setPartitionListeners(List<com.gemstone.gemfire.cache.partition.PartitionListener> listeners)
setRecoveryDelay
public void setRecoveryDelay(long recoveryDelay)
setRedundantCopies
public void setRedundantCopies(int redundantCopies)
setStartupRecoveryDelay
public void setStartupRecoveryDelay(long startupRecoveryDelay)
setTotalMaxMemory
public void setTotalMaxMemory(long mb)
setTotalNumBuckets
public void setTotalNumBuckets(int numBuckets)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception