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