public static class PrimaryBackupPartitionGroup.Builder
extends io.atomix.primitive.partition.PartitionGroup.Builder
| Modifier and Type | Method and Description |
|---|---|
io.atomix.primitive.partition.ManagedPartitionGroup |
build() |
PrimaryBackupPartitionGroup.Builder |
withNumPartitions(int numPartitions)
Sets the number of partitions.
|
public PrimaryBackupPartitionGroup.Builder withNumPartitions(int numPartitions)
numPartitions - the number of partitionsIllegalArgumentException - if the number of partitions is not positivepublic io.atomix.primitive.partition.ManagedPartitionGroup build()
Copyright © 2013–2018. All rights reserved.