public interface RaftLog extends ReadableRaftLog
| Modifier and Type | Field and Description |
|---|---|
static String |
PHYSICAL_LOG_DIRECTORY_NAME |
| Modifier and Type | Method and Description |
|---|---|
long |
append(RaftLogEntry... entry)
Appends entry to the end of the log.
|
long |
prune(long safeIndex)
Attempt to prune (delete) a prefix of the log, no further than the safeIndex.
|
long |
skip(long index,
long term)
Skip up to the supplied index if it is not already present.
|
void |
truncate(long fromIndex)
Truncates the log starting from the supplied index.
|
appendIndex, getEntryCursor, prevIndex, readEntryTermstatic final String PHYSICAL_LOG_DIRECTORY_NAME
long append(RaftLogEntry... entry) throws IOException
entry - The log entry.IOExceptionvoid truncate(long fromIndex)
throws IOException
fromIndex - The start index (inclusive).IOExceptionlong prune(long safeIndex)
throws IOException
safeIndex - Highest index that may be pruned.IOExceptionlong skip(long index,
long term)
throws IOException
index - the index we want to skip toterm - the term of the indexIOExceptionCopyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.