@NotThreadSafe public interface JournalReader extends Closeable
Modifier and Type | Method and Description |
---|---|
long |
getNextSequenceNumber()
Gets the the sequence number of the next journal log entry to read.
|
Journal.JournalEntry |
read()
Reads an entry from the journal.
|
Journal.JournalEntry read() throws IOException, InvalidJournalEntryException
InvalidJournalEntryException
- if the journal entry is invalid (e.g. corrupted entry)IOException
long getNextSequenceNumber()
Copyright © 2023. All Rights Reserved.