public interface JournalContext extends Closeable, java.util.function.Supplier<JournalContext>
Modifier and Type | Method and Description |
---|---|
void |
append(Journal.JournalEntry entry) |
void |
close() |
void |
flush()
Flushes all the entries appended by the journal context so far.
|
default JournalContext |
get() |
void append(Journal.JournalEntry entry)
entry
- the Journal.JournalEntry
to append to the journalvoid flush() throws UnavailableException
MasterJournalContext
,
or only added into the async journal writer (example MetadataSyncMergeJournalContext
,
based on different implementations.UnavailableException
default JournalContext get()
get
in interface java.util.function.Supplier<JournalContext>
void close() throws UnavailableException
close
in interface AutoCloseable
close
in interface Closeable
UnavailableException
Copyright © 2023. All Rights Reserved.