Uses of Class
io.atomix.raft.storage.log.RaftLogBuilder
Packages that use RaftLogBuilder
Package
Description
Provides a standalone segmented log for use in the Raft consensus protocol implementation.
-
Uses of RaftLogBuilder in io.atomix.raft.storage.log
Methods in io.atomix.raft.storage.log that return RaftLogBuilderModifier and TypeMethodDescriptionstatic RaftLogBuilderRaftLog.builder()Returns a new Raft log builder.RaftLogBuilder.withDirectory(File directory) Sets the log directory, returning the builder for method chaining.RaftLogBuilder.withFlusher(RaftLogFlusher flusher) Sets the flushing strategy.RaftLogBuilder.withFreeDiskSpace(long freeDiskSpace) Sets the minimum free disk space to leave when allocating a new segmentRaftLogBuilder.withJournalIndexDensity(int journalIndexDensity) Sets the index density of the journal.RaftLogBuilder.withMaxSegmentSize(int maxSegmentSize) Sets the maximum segment size in bytes, returning the builder for method chaining.RaftLogBuilder.withMetaStore(JournalMetaStore metaStore) Sets the storage name.RaftLogBuilder.withPartitionId(int partitionId) The ID of the partition on which this log resides.RaftLogBuilder.withPreallocateSegmentFiles(boolean preallocateSegmentFiles) Sets whether segment files are pre-allocated at creation.