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(io.micrometer.core.instrument.MeterRegistry meterRegistry) Returns a new storage builder.RaftStorage.Builder.withDirectory(File directory) Sets the log directory, returning the builder for method chaining.RaftStorage.Builder.withFlusherFactory(RaftLogFlusher.Factory flusherFactory) Sets theRaftLogFlusher.Factoryto create a new flushing strategy for theRaftLogwhenis called.invalid reference
#openLog(MetaStore, ThreadContext)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.withPartitionId(int partitionId) The ID of the partition on which this storage resides.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.