public class NoopJournalReader extends Object implements JournalReader
JournalReader
that does nothing.Constructor and Description |
---|
NoopJournalReader()
Creates a new instance of
NoopJournalReader . |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getNextSequenceNumber()
Gets the the sequence number of the next journal log entry to read.
|
Journal.JournalEntry |
read()
Reads an entry from the journal.
|
public NoopJournalReader()
NoopJournalReader
.public Journal.JournalEntry read() throws IOException, InvalidJournalEntryException
JournalReader
read
in interface JournalReader
InvalidJournalEntryException
- if the journal entry is invalid (e.g. corrupted entry)IOException
public long getNextSequenceNumber()
JournalReader
getNextSequenceNumber
in interface JournalReader
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023. All Rights Reserved.