public class RaftLogReader extends io.atomix.storage.journal.DelegatingJournalReader<RaftLogEntry>
| Modifier and Type | Class and Description |
|---|---|
static class |
RaftLogReader.Mode
Raft log reader mode.
|
| Constructor and Description |
|---|
RaftLogReader(io.atomix.storage.journal.SegmentedJournalReader<RaftLogEntry> reader,
RaftLog log,
RaftLogReader.Mode mode) |
| Modifier and Type | Method and Description |
|---|---|
long |
getFirstIndex()
Returns the first index in the journal.
|
boolean |
hasNext() |
close, getCurrentEntry, getCurrentIndex, getNextIndex, next, reset, reset, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemaining, removepublic RaftLogReader(io.atomix.storage.journal.SegmentedJournalReader<RaftLogEntry> reader, RaftLog log, RaftLogReader.Mode mode)
public long getFirstIndex()
public boolean hasNext()
hasNext in interface io.atomix.storage.journal.JournalReader<RaftLogEntry>hasNext in interface Iterator<io.atomix.storage.journal.Indexed<RaftLogEntry>>hasNext in class io.atomix.storage.journal.DelegatingJournalReader<RaftLogEntry>Copyright © 2013–2017. All rights reserved.