@ThreadSafe public final class PathProperties extends Object implements DelegatingJournaled
Modifier and Type | Class and Description |
---|---|
static class |
PathProperties.State
Journaled state of path level properties.
|
LOG
Constructor and Description |
---|
PathProperties() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.function.Supplier<JournalContext> ctx,
String path,
Map<PropertyKey,String> properties)
Adds properties for path.
|
Map<String,Map<String,String>> |
get() |
Journaled |
getDelegate() |
long |
getLastUpdateTime() |
String |
hash() |
void |
remove(java.util.function.Supplier<JournalContext> ctx,
String path,
Set<String> keys)
Removes the specified set of keys from the properties for path.
|
void |
removeAll(java.util.function.Supplier<JournalContext> ctx,
String path)
Removes all properties for path.
|
PathPropertiesView |
snapshot() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyAndJournal, getCheckpointName, getJournalEntryIterator, processJournalEntry, resetState, restoreFromCheckpoint, restoreFromCheckpoint, writeToCheckpoint, writeToCheckpoint
public PathPropertiesView snapshot()
public Map<String,Map<String,String>> get()
public void add(java.util.function.Supplier<JournalContext> ctx, String path, Map<PropertyKey,String> properties)
ctx
- the journal contextpath
- the pathproperties
- the new propertiespublic void remove(java.util.function.Supplier<JournalContext> ctx, String path, Set<String> keys)
ctx
- the journal contextpath
- the pathkeys
- the keys to removepublic void removeAll(java.util.function.Supplier<JournalContext> ctx, String path)
ctx
- the journal contextpath
- the pathpublic String hash()
public Journaled getDelegate()
getDelegate
in interface DelegatingJournaled
public long getLastUpdateTime()
Copyright © 2023. All Rights Reserved.