Package org.springframework.data.gemfire
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:
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
DEFAULT_SINGLETONFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClass<?>voidsetColocatedWith(String collocatedWith) voidsetFixedPartitionAttributes(List<FixedPartitionAttributes> fixedPartitionAttributes) voidsetLocalMaxMemory(int mb) voidsetPartitionListeners(List<PartitionListener> partitionListeners) voidsetPartitionResolver(PartitionResolver<K, V> resolver) voidsetRecoveryDelay(long recoveryDelay) voidsetRedundantCopies(int redundantCopies) voidsetStartupRecoveryDelay(long startupRecoveryDelay) voidsetTotalMaxMemory(long megabytes) voidsetTotalNumBuckets(int numBuckets) Methods inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
getBeanClassLoader, getBeanFactory, getBeanName, getLog, getOptionalLog, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLog, setBeanClassLoader, setBeanFactory, setBeanName
-
Constructor Details
-
PartitionAttributesFactoryBean
public PartitionAttributesFactoryBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Throws:
Exception
-
getObject
- Specified by:
getObjectin interfaceFactoryBean<K>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<K>
-
setColocatedWith
-
setFixedPartitionAttributes
-
setLocalMaxMemory
public void setLocalMaxMemory(int mb) -
setPartitionListeners
-
setPartitionResolver
-
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)
-