public interface JournalWriter extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
flush()
Flushes all the entries written to the underlying storage.
|
void |
write(Journal.JournalEntry entry)
Writes an entry.
|
void write(Journal.JournalEntry entry) throws IOException, JournalClosedException
flush()
should be called afterwards if we want to make sure the entry
is persisted.entry
- the journal entry to writeIOException
JournalClosedException
void flush() throws IOException, JournalClosedException
IOException
JournalClosedException
Copyright © 2023. All Rights Reserved.