@NotThreadSafe public final class StateChangeJournalContext extends Object implements JournalContext
Constructor and Description |
---|
StateChangeJournalContext(JournalContext journalContext,
LockResource stateLockResource)
Constructs a
StateChangeJournalContext . |
Modifier and Type | Method and Description |
---|---|
void |
append(Journal.JournalEntry entry) |
void |
close() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
public StateChangeJournalContext(JournalContext journalContext, LockResource stateLockResource)
StateChangeJournalContext
.journalContext
- the journal context to wrapstateLockResource
- the state lock resource to keeppublic void append(Journal.JournalEntry entry)
append
in interface JournalContext
entry
- the Journal.JournalEntry
to append to the journalpublic void close() throws UnavailableException
close
in interface JournalContext
close
in interface Closeable
close
in interface AutoCloseable
UnavailableException
Copyright © 2023. All Rights Reserved.