Uses of Class
io.atomix.raft.partition.RaftPartitionGroup.Builder
Packages that use RaftPartitionGroup.Builder
Package
Description
Provides
PartitionGroup and Partition implementations for the Raft consensus protocol.-
Uses of RaftPartitionGroup.Builder in io.atomix.raft.partition
Methods in io.atomix.raft.partition that return RaftPartitionGroup.BuilderModifier and TypeMethodDescriptionstatic RaftPartitionGroup.BuilderReturns a new Raft partition group builder.RaftPartitionGroup.Builder.withDataDirectory(File dataDir) Sets the path to the data directory.RaftPartitionGroup.Builder.withElectionTimeout(Duration electionTimeout) Sets the election timeout.RaftPartitionGroup.Builder.withEntryValidator(EntryValidator entryValidator) Sets the entry validator to be called when an entry is appended.RaftPartitionGroup.Builder.withFlusherFactory(RaftLogFlusher.Factory flusherFactory) Sets theRaftLogFlusher.Factoryto create a new flushing strategy for theRaftLogwhenio.atomix.raft.storage.RaftStorage#openLog(ThreadContext)} is called.RaftPartitionGroup.Builder.withFreeDiskSpace(long freeDiskSpace) Set the minimum free disk space (in bytes) to leave when allocating a new segmentRaftPartitionGroup.Builder.withHeartbeatInterval(Duration heartbeatInterval) Sets the heartbeatInterval.RaftPartitionGroup.Builder.withJournalIndexDensity(int journalIndexDensity) RaftPartitionGroup.Builder.withMaxAppendBatchSize(int maxAppendBatchSize) Sets the maximum batch size, which is sent per append request.RaftPartitionGroup.Builder.withMaxAppendsPerFollower(int maxAppendsPerFollower) Sets the maximum append requests which are sent per follower at once.RaftPartitionGroup.Builder.withMaxQuorumResponseTimeout(Duration maxQuorumResponseTimeout) If the leader is not able to reach the quorum, the leader may step down.RaftPartitionGroup.Builder.withMembers(Member... members) Sets the Raft partition group members.RaftPartitionGroup.Builder.withMembers(Collection<String> members) Sets the Raft partition group members.RaftPartitionGroup.Builder.withMinStepDownFailureCount(int minStepDownFailureCount) If the leader is not able to reach the quorum, the leader may step down.RaftPartitionGroup.Builder.withNumPartitions(int numPartitions) Sets the number of partitions.RaftPartitionGroup.Builder.withPartitionDistributor(PartitionDistributor partitionDistributor) Sets the partition distributor to use.RaftPartitionGroup.Builder.withPartitionSize(int partitionSize) Sets the partition size.RaftPartitionGroup.Builder.withPreallocateSegmentFiles(boolean preallocateSegmentFiles) Sets whether segment files are pre-allocated at creation.RaftPartitionGroup.Builder.withPreferSnapshotReplicationThreshold(int preferSnapshotReplicationThreshold) Sets the threshold for preferring snapshot replication.RaftPartitionGroup.Builder.withPriorityElection(boolean enable) RaftPartitionGroup.Builder.withRequestTimeout(Duration requestTimeout) Sets the timeout for all messages sent between raft replicas.RaftPartitionGroup.Builder.withSegmentSize(long segmentSizeBytes) Sets the segment size.RaftPartitionGroup.Builder.withSnapshotStoreFactory(ReceivableSnapshotStoreFactory persistedSnapshotStoreFactory) Sets the Raft snapshot store factory to use.