public class RaftLogWriter extends io.atomix.storage.journal.DelegatingJournalWriter<RaftLogEntry>
| Constructor and Description |
|---|
RaftLogWriter(io.atomix.storage.journal.SegmentedJournalWriter<RaftLogEntry> writer,
RaftLog log) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(long index)
Commits entries up to the given index.
|
void |
reset(long index)
Resets the head of the log to the given index.
|
void |
truncate(long index) |
public RaftLogWriter(io.atomix.storage.journal.SegmentedJournalWriter<RaftLogEntry> writer, RaftLog log)
public void reset(long index)
index - the index to which to reset the head of the logpublic void commit(long index)
index - The index up to which to commit entries.public void truncate(long index)
truncate in interface io.atomix.storage.journal.JournalWriter<RaftLogEntry>truncate in class io.atomix.storage.journal.DelegatingJournalWriter<RaftLogEntry>Copyright © 2013–2017. All rights reserved.