Package org.springframework.data.gemfire
Class PartitionAttributesFactoryBean<K,V>
java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<org.apache.geode.cache.PartitionAttributes<K,V>>
org.springframework.data.gemfire.PartitionAttributesFactoryBean<K,V>
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.PartitionAttributes<K,
,V>> org.springframework.beans.factory.InitializingBean
public class PartitionAttributesFactoryBean<K,V>
extends AbstractFactoryBeanSupport<org.apache.geode.cache.PartitionAttributes<K,V>>
implements org.springframework.beans.factory.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.- See Also:
-
FixedPartitionAttributes
PartitionAttributes
PartitionAttributesFactory
PartitionResolver
PartitionListener
FactoryBean
InitializingBean
AbstractFactoryBeanSupport
-
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<org.apache.geode.cache.FixedPartitionAttributes> fixedPartitionAttributes) void
setLocalMaxMemory
(int mb) void
setPartitionListeners
(List<org.apache.geode.cache.partition.PartitionListener> partitionListeners) void
setPartitionResolver
(org.apache.geode.cache.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, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory, setBeanName
-
Constructor Details
-
PartitionAttributesFactoryBean
public PartitionAttributesFactoryBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
getObject
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<K>
-
setColocatedWith
-
setFixedPartitionAttributes
public void setFixedPartitionAttributes(List<org.apache.geode.cache.FixedPartitionAttributes> fixedPartitionAttributes) -
setLocalMaxMemory
public void setLocalMaxMemory(int mb) -
setPartitionListeners
public void setPartitionListeners(List<org.apache.geode.cache.partition.PartitionListener> partitionListeners) -
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)
-