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