public final class LogSegment extends Object
SegmentedRaftLog's read-write lock.| 限定符和类型 | 方法和说明 |
|---|---|
static int |
readSegmentFile(File file,
LogSegmentStartEnd startEnd,
SizeInBytes maxOpSize,
RaftServerConfigKeys.Log.CorruptionPolicy corruptionPolicy,
SegmentedRaftLogMetrics raftLogMetrics,
Consumer<org.apache.ratis.proto.RaftProtos.LogEntryProto> entryConsumer) |
String |
toString() |
public static int readSegmentFile(File file, LogSegmentStartEnd startEnd, SizeInBytes maxOpSize, RaftServerConfigKeys.Log.CorruptionPolicy corruptionPolicy, SegmentedRaftLogMetrics raftLogMetrics, Consumer<org.apache.ratis.proto.RaftProtos.LogEntryProto> entryConsumer) throws IOException
IOExceptionCopyright © 2017–2025 The Apache Software Foundation. All rights reserved.