public static class PrimaryBackupPartitionGroup.Builder extends io.atomix.primitive.partition.PartitionGroup.Builder<PrimaryBackupPartitionGroupConfig>
| Modifier and Type | Method and Description |
|---|---|
PrimaryBackupPartitionGroup |
build() |
PrimaryBackupPartitionGroup.Builder |
withMemberGroupStrategy(io.atomix.primitive.partition.MemberGroupStrategy memberGroupStrategy)
Sets the member group strategy.
|
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 PrimaryBackupPartitionGroup.Builder withMemberGroupStrategy(io.atomix.primitive.partition.MemberGroupStrategy memberGroupStrategy)
memberGroupStrategy - the member group strategypublic PrimaryBackupPartitionGroup build()
Copyright © 2013–2018. All rights reserved.