Package io.atomix.primitive.partition
Class PartitionGroupConfig<C extends PartitionGroupConfig<C>>
java.lang.Object
io.atomix.primitive.partition.PartitionGroupConfig<C>
- All Implemented Interfaces:
io.atomix.utils.config.Config,io.atomix.utils.config.NamedConfig<C>,io.atomix.utils.config.TypedConfig<PartitionGroup.Type>
public abstract class PartitionGroupConfig<C extends PartitionGroupConfig<C>> extends Object implements io.atomix.utils.config.TypedConfig<PartitionGroup.Type>, io.atomix.utils.config.NamedConfig<C>
Partition group configuration.
-
Constructor Summary
Constructors Constructor Description PartitionGroupConfig() -
Method Summary
Modifier and Type Method Description StringgetName()intgetPartitions()Returns the number of partitions in the group.CsetName(String name)CsetPartitions(int partitions)Sets the number of partitions in the group.
-
Constructor Details
-
PartitionGroupConfig
public PartitionGroupConfig()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceio.atomix.utils.config.NamedConfig<C extends PartitionGroupConfig<C>>
-
setName
- Specified by:
setNamein interfaceio.atomix.utils.config.NamedConfig<C extends PartitionGroupConfig<C>>
-
getPartitions
public int getPartitions()Returns the number of partitions in the group.- Returns:
- the number of partitions in the group.
-
setPartitions
Sets the number of partitions in the group.- Parameters:
partitions- the number of partitions in the group- Returns:
- the partition group configuration
-