Interface PropertySource.Editor
-
- Enclosing interface:
- PropertySource
public static interface PropertySource.EditorProvides a means to update the underlying store in a thread-safe manner.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcommit()Saves all changes to the underlying store.voidremoveKeysStartingWith(String prefix)Removes all keys with the specified prefix.voidsetValue(String key, String value)Sets the specified key to the specified value.
-
-
-
Method Detail
-
setValue
void setValue(String key, String value)
Sets the specified key to the specified value.- Parameters:
key- the keyvalue- the value
-
removeKeysStartingWith
void removeKeysStartingWith(String prefix)
Removes all keys with the specified prefix.- Parameters:
prefix- the key prefix to remove
-
commit
void commit()
Saves all changes to the underlying store.
-
-