public 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,
long start,
long end,
boolean isOpen,
RaftServerConfigKeys.Log.CorruptionPolicy corruptionPolicy,
RaftLogMetrics raftLogMetrics,
Consumer<org.apache.ratis.proto.RaftProtos.LogEntryProto> entryConsumer) |
String |
toString() |
public static int readSegmentFile(File file, long start, long end, boolean isOpen, RaftServerConfigKeys.Log.CorruptionPolicy corruptionPolicy, RaftLogMetrics raftLogMetrics, Consumer<org.apache.ratis.proto.RaftProtos.LogEntryProto> entryConsumer) throws IOException
IOExceptionpublic int compareTo(Long l)
compareTo in interface Comparable<Long>Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.