| Package | Description |
|---|---|
| io.atomix.protocols.raft.storage.log |
| Modifier and Type | Method and Description |
|---|---|
static RaftLog.Builder |
RaftLog.builder()
Deprecated.
|
static RaftLog.Builder |
RaftLog.newBuilder()
Returns a new Raft log builder.
|
RaftLog.Builder |
RaftLog.Builder.withDirectory(File directory)
Sets the log directory, returning the builder for method chaining.
|
RaftLog.Builder |
RaftLog.Builder.withDirectory(String directory)
Sets the log directory, returning the builder for method chaining.
|
RaftLog.Builder |
RaftLog.Builder.withFlushOnCommit()
Enables flushing buffers to disk when entries are committed to a segment, returning the builder
for method chaining.
|
RaftLog.Builder |
RaftLog.Builder.withFlushOnCommit(boolean flushOnCommit)
Sets whether to flush buffers to disk when entries are committed to a segment, returning the builder
for method chaining.
|
RaftLog.Builder |
RaftLog.Builder.withMaxEntriesPerSegment(int maxEntriesPerSegment)
Sets the maximum number of allows entries per segment, returning the builder for method chaining.
|
RaftLog.Builder |
RaftLog.Builder.withMaxSegmentSize(int maxSegmentSize)
Sets the maximum segment size in bytes, returning the builder for method chaining.
|
RaftLog.Builder |
RaftLog.Builder.withName(String name)
Sets the storage name.
|
RaftLog.Builder |
RaftLog.Builder.withSerializer(io.atomix.serializer.Serializer serializer)
Sets the journal serializer, returning the builder for method chaining.
|
RaftLog.Builder |
RaftLog.Builder.withStorageLevel(io.atomix.storage.StorageLevel storageLevel)
Sets the log storage level, returning the builder for method chaining.
|
Copyright © 2013–2017. All rights reserved.