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_SINGLETON
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Class<?>
void
setColocatedWith
(String collocatedWith) void
setFixedPartitionAttributes
(List<FixedPartitionAttributes> fixedPartitionAttributes) void
setLocalMaxMemory
(int mb) void
setPartitionListeners
(List<PartitionListener> partitionListeners) void
setPartitionResolver
(PartitionResolver<K, V> resolver) void
setRecoveryDelay
(long recoveryDelay) void
setRedundantCopies
(int redundantCopies) void
setStartupRecoveryDelay
(long startupRecoveryDelay) void
setTotalMaxMemory
(long megabytes) void
setTotalNumBuckets
(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:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-
getObject
- Specified by:
getObject
in interfaceFactoryBean<K>
- Throws:
Exception
-
getObjectType
- Specified by:
getObjectType
in 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)
-