Package org.springframework.data.gemfire
Class FixedPartitionAttributesFactoryBean
java.lang.Object
org.springframework.data.gemfire.FixedPartitionAttributesFactoryBean
- All Implemented Interfaces:
FactoryBean<FixedPartitionAttributes>,InitializingBean
public class FixedPartitionAttributesFactoryBean
extends Object
implements FactoryBean<FixedPartitionAttributes>, InitializingBean
Spring
FactoryBean to create a instance of the FixedPartitionAttributes.- Author:
- David Turanski, John Blum
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClass<?>booleanvoidsetNumBuckets(Integer numBuckets) Set the number of buckets in the Partition Region.voidsetPartitionName(String partitionName) Set the name of the partition in the Partition Region.voidsetPrimary(boolean primary) Sets whether this particular PARTITION Region is the primary (i.e. not secondary).
-
Constructor Details
-
FixedPartitionAttributesFactoryBean
public FixedPartitionAttributesFactoryBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Throws:
Exception
-
getObject
- Specified by:
getObjectin interfaceFactoryBean<FixedPartitionAttributes>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<FixedPartitionAttributes>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceFactoryBean<FixedPartitionAttributes>
-
setNumBuckets
Set the number of buckets in the Partition Region.- Parameters:
numBuckets- integer value indicating the number of buckets in the Partition Region.
-
setPartitionName
Set the name of the partition in the Partition Region.- Parameters:
partitionName- name of the partition.
-
setPrimary
public void setPrimary(boolean primary) Sets whether this particular PARTITION Region is the primary (i.e. not secondary).- Parameters:
primary- a boolean value to indicate whether this PARTITION Region is the primary.
-