@ThreadSafe public final class AsyncJournalWriter extends Object
Constructor and Description |
---|
AsyncJournalWriter(JournalWriter journalWriter)
Creates a
AsyncJournalWriter . |
Modifier and Type | Method and Description |
---|---|
long |
appendEntry(Journal.JournalEntry entry)
Appends a
Journal.JournalEntry for writing to the journal. |
void |
flush(long targetCounter)
Flushes and waits until the specified counter is flushed to the journal.
|
public AsyncJournalWriter(JournalWriter journalWriter)
AsyncJournalWriter
.journalWriter
- the JournalWriter
to use for writingpublic long appendEntry(Journal.JournalEntry entry)
Journal.JournalEntry
for writing to the journal.entry
- the Journal.JournalEntry
to appendpublic void flush(long targetCounter) throws IOException
targetCounter
- the counter to flushIOException
Copyright © 2023. All Rights Reserved.