public static class RocksDBSegmentLogStorage.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
RocksDBSegmentLogStorage |
build() |
int |
getCheckpointIntervalMs() |
int |
getKeepInMemorySegmentCount() |
int |
getMaxSegmentFileSize() |
String |
getPath() |
int |
getPreAllocateSegmentCount() |
RaftOptions |
getRaftOptions() |
int |
getValueSizeThreshold() |
ThreadPoolExecutor |
getWriteExecutor() |
RocksDBSegmentLogStorage.Builder |
setCheckpointIntervalMs(int checkpointIntervalMs) |
RocksDBSegmentLogStorage.Builder |
setKeepInMemorySegmentCount(int keepInMemorySegmentCount) |
RocksDBSegmentLogStorage.Builder |
setMaxSegmentFileSize(int maxSegmentFileSize) |
RocksDBSegmentLogStorage.Builder |
setPath(String path) |
RocksDBSegmentLogStorage.Builder |
setPreAllocateSegmentCount(int preAllocateSegmentCount) |
RocksDBSegmentLogStorage.Builder |
setRaftOptions(RaftOptions raftOptions) |
RocksDBSegmentLogStorage.Builder |
setValueSizeThreshold(int valueSizeThreshold) |
RocksDBSegmentLogStorage.Builder |
setWriteExecutor(ThreadPoolExecutor writeExecutor) |
public String getPath()
public RocksDBSegmentLogStorage.Builder setPath(String path)
public RaftOptions getRaftOptions()
public RocksDBSegmentLogStorage.Builder setRaftOptions(RaftOptions raftOptions)
public int getValueSizeThreshold()
public RocksDBSegmentLogStorage.Builder setValueSizeThreshold(int valueSizeThreshold)
public int getMaxSegmentFileSize()
public RocksDBSegmentLogStorage.Builder setMaxSegmentFileSize(int maxSegmentFileSize)
public ThreadPoolExecutor getWriteExecutor()
public RocksDBSegmentLogStorage.Builder setWriteExecutor(ThreadPoolExecutor writeExecutor)
public int getPreAllocateSegmentCount()
public RocksDBSegmentLogStorage.Builder setPreAllocateSegmentCount(int preAllocateSegmentCount)
public int getKeepInMemorySegmentCount()
public RocksDBSegmentLogStorage.Builder setKeepInMemorySegmentCount(int keepInMemorySegmentCount)
public int getCheckpointIntervalMs()
public RocksDBSegmentLogStorage.Builder setCheckpointIntervalMs(int checkpointIntervalMs)
public RocksDBSegmentLogStorage build()
Copyright © 2021. All rights reserved.