Uses of Class
io.atomix.raft.storage.RaftStorage.Builder
Packages that use RaftStorage.Builder
Package
Description
Provides various classes and interfaces for storing logs and snapshots in the Raft consensus
protocol.
-
Uses of RaftStorage.Builder in io.atomix.raft.storage
Methods in io.atomix.raft.storage that return RaftStorage.BuilderModifier and TypeMethodDescriptionstatic RaftStorage.BuilderRaftStorage.builder()Returns a new storage builder.RaftStorage.Builder.withDirectory(File directory) Sets the log directory, returning the builder for method chaining.RaftStorage.Builder.withFlushExplicitly(boolean flushExplicitly) Sets whether to flush logs to disk to guarantee correctness.RaftStorage.Builder.withFreeDiskSpace(long freeDiskSpace) Sets the percentage of free disk space that must be preserved before log compaction is forced.RaftStorage.Builder.withJournalIndexDensity(int journalIndexDensity) RaftStorage.Builder.withMaxSegmentSize(int maxSegmentSize) Sets the maximum segment size in bytes, returning the builder for method chaining.RaftStorage.Builder.withPreallocateSegmentFiles(boolean preallocateSegmentFiles) Sets whether segment files are pre-allocated at creation.RaftStorage.Builder.withPrefix(String prefix) Sets the storage prefix.RaftStorage.Builder.withSnapshotStore(ReceivableSnapshotStore persistedSnapshotStore) Sets the snapshot store to use for remote snapshot installation.