@NotThreadSafe public static final class DefaultMetaMaster.State extends Object implements Journaled
Constructor and Description |
---|
State() |
Modifier and Type | Method and Description |
---|---|
void |
applyAndJournal(java.util.function.Supplier<JournalContext> ctx,
String clusterId) |
CheckpointName |
getCheckpointName() |
String |
getClusterID() |
CloseableIterator<Journal.JournalEntry> |
getJournalEntryIterator() |
boolean |
processJournalEntry(Journal.JournalEntry entry)
Attempts to apply a journal entry.
|
void |
resetState()
Resets the object's journaled state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyAndJournal, restoreFromCheckpoint, writeToCheckpoint
public String getClusterID()
public CheckpointName getCheckpointName()
getCheckpointName
in interface Checkpointed
public boolean processJournalEntry(Journal.JournalEntry entry)
Journaled
processJournalEntry
in interface Journaled
entry
- the entry to applypublic void applyAndJournal(java.util.function.Supplier<JournalContext> ctx, String clusterId)
ctx
- the journal contextclusterId
- the clusterId journal clusterIdpublic void resetState()
Journaled
resetState
in interface Journaled
public CloseableIterator<Journal.JournalEntry> getJournalEntryIterator()
getJournalEntryIterator
in interface JournalEntryIterable
CloseableIterator
that iterates all the journal entriesCopyright © 2023. All Rights Reserved.