public static class RaftPartitionGroup.Builder
extends io.atomix.primitive.partition.PartitionGroup.Builder
| Modifier and Type | Method and Description |
|---|---|
io.atomix.primitive.partition.ManagedPartitionGroup |
build() |
RaftPartitionGroup.Builder |
withDataDirectory(File dataDir)
Sets the path to the data directory.
|
RaftPartitionGroup.Builder |
withNumPartitions(int numPartitions)
Sets the number of partitions.
|
RaftPartitionGroup.Builder |
withPartitionSize(int partitionSize)
Sets the partition size.
|
RaftPartitionGroup.Builder |
withStorageLevel(io.atomix.storage.StorageLevel storageLevel)
Sets the storage level.
|
public RaftPartitionGroup.Builder withNumPartitions(int numPartitions)
numPartitions - the number of partitionsIllegalArgumentException - if the number of partitions is not positivepublic RaftPartitionGroup.Builder withPartitionSize(int partitionSize)
partitionSize - the partition sizeIllegalArgumentException - if the partition size is not positivepublic RaftPartitionGroup.Builder withStorageLevel(io.atomix.storage.StorageLevel storageLevel)
storageLevel - the storage levelpublic RaftPartitionGroup.Builder withDataDirectory(File dataDir)
dataDir - the path to the replica's data directorypublic io.atomix.primitive.partition.ManagedPartitionGroup build()
Copyright © 2013–2018. All rights reserved.