public class DynamicWatchedConfiguration extends ConcurrentMapConfiguration implements WatchedUpdateListener
This configuration does not allow null as key or value and will throw NullPointerException when trying to add or set properties with empty key or value.
DISABLE_DELIMITER_PARSING, map
Constructor and Description |
---|
DynamicWatchedConfiguration(WatchedConfigurationSource source)
Simplified constructor with the following defaults:
ignoreDeletesFromSource = false dynamicPropertyUpdater = new DynamicPropertyUpdater () |
DynamicWatchedConfiguration(WatchedConfigurationSource source,
boolean ignoreDeletesFromSource,
DynamicPropertyUpdater updater)
Create an instance of the WatchedConfigurationSource, add listeners, and wait for the update callbacks.
|
Modifier and Type | Method and Description |
---|---|
WatchedConfigurationSource |
getSource() |
boolean |
isIgnoreDeletesFromSource() |
void |
updateConfiguration(WatchedUpdateResult result)
Updates the configuration either incrementally or fully depending on the type of
WatchedUpdateResult that is passed. |
addConfigurationListener, addErrorListener, addProperty, addPropertyDirect, addPropertyImpl, clear, clearConfigurationListeners, clearErrorListeners, clearPropertyDirect, containsKey, copy, fireError, fireEvent, getConfigurationListeners, getErrorListeners, getKeys, getProperties, getProperty, isEmpty, loadProperties, removeConfigurationListener, removeErrorListener, setProperty, setPropertyImpl
public DynamicWatchedConfiguration(WatchedConfigurationSource source, boolean ignoreDeletesFromSource, DynamicPropertyUpdater updater)
source
- PolledConfigurationSource to pollpublic DynamicWatchedConfiguration(WatchedConfigurationSource source)
DynamicPropertyUpdater
()source
- WatchedConfigurationSource
public void updateConfiguration(WatchedUpdateResult result)
WatchedUpdateListener
WatchedUpdateResult
that is passed.updateConfiguration
in interface WatchedUpdateListener
public boolean isIgnoreDeletesFromSource()
public WatchedConfigurationSource getSource()
WatchedConfigurationSource