@NotThreadSafe public static final class PathProperties.State extends Object implements Journaled
Constructor and Description |
---|
State() |
Modifier and Type | Method and Description |
---|---|
void |
applyAndJournal(java.util.function.Supplier<JournalContext> ctx,
Meta.PathPropertiesEntry entry) |
void |
applyAndJournal(java.util.function.Supplier<JournalContext> ctx,
Meta.RemovePathPropertiesEntry entry) |
CheckpointName |
getCheckpointName() |
Iterator<Journal.JournalEntry> |
getJournalEntryIterator() |
Map<String,Map<String,String>> |
getProperties() |
Map<String,String> |
getProperties(String path) |
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 Map<String,Map<String,String>> getProperties()
public Map<String,String> getProperties(String path)
path
- the pathpublic boolean processJournalEntry(Journal.JournalEntry entry)
Journaled
processJournalEntry
in interface Journaled
entry
- the entry to applypublic void applyAndJournal(java.util.function.Supplier<JournalContext> ctx, Meta.PathPropertiesEntry entry)
ctx
- the journal contextentry
- the path properties entrypublic void applyAndJournal(java.util.function.Supplier<JournalContext> ctx, Meta.RemovePathPropertiesEntry entry)
ctx
- the journal contextentry
- the remove path properties entrypublic void resetState()
Journaled
resetState
in interface Journaled
public CheckpointName getCheckpointName()
getCheckpointName
in interface Checkpointed
public Iterator<Journal.JournalEntry> getJournalEntryIterator()
getJournalEntryIterator
in interface JournalEntryIterable
Iterator
that iterates all the journal entriesCopyright © 2023. All Rights Reserved.