public final class LogSegment extends Object implements Comparable<Long>
SegmentedRaftLog's read-write lock.| Modifier and Type | Method and Description |
|---|---|
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 in interface Comparable<Long>Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.