public static class PrimaryBackupPartitionGroup.Builder extends PartitionGroup.Builder<PrimaryBackupPartitionGroupConfig>
| Modifier and Type | Method and Description |
|---|---|
PrimaryBackupPartitionGroup |
build()
Builds the object.
|
PrimaryBackupPartitionGroup.Builder |
withMemberGroupStrategy(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(MemberGroupStrategy memberGroupStrategy)
memberGroupStrategy - the member group strategypublic PrimaryBackupPartitionGroup build()
BuilderThe returned object may be a new instance of the built class or a recycled instance, depending on the semantics of the builder implementation. Users should never assume that a builder allocates a new instance.
Copyright © 2013–2018. All rights reserved.