Interface PropertySource.Editor

Enclosing interface:
PropertySource

public static interface PropertySource.Editor
Provides a means to update the underlying store in a thread-safe manner.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Saves all changes to the underlying store.
    void
    Removes all keys with the specified prefix.
    void
    setValue(String key, String value)
    Sets the specified key to the specified value.
  • Method Details

    • setValue

      void setValue(String key, String value)
      Sets the specified key to the specified value.
      Parameters:
      key - the key
      value - 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.