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, setPropertyImpladdErrorLogListener, append, clearProperty, createInterpolator, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDefaultListDelimiter, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getList, getList, getListDelimiter, getLogger, getLong, getLong, getLong, getProperties, getProperties, getShort, getShort, getShort, getString, getString, getStringArray, getSubstitutor, interpolate, interpolate, interpolatedConfiguration, interpolateHelper, isDelimiterParsingDisabled, isScalarValue, isThrowExceptionOnMissing, resolveContainerStore, setDefaultListDelimiter, setDelimiter, setDelimiterParsingDisabled, setListDelimiter, setLogger, setThrowExceptionOnMissing, subsetpublic DynamicWatchedConfiguration(WatchedConfigurationSource source, boolean ignoreDeletesFromSource, DynamicPropertyUpdater updater)
source - PolledConfigurationSource to pollpublic DynamicWatchedConfiguration(WatchedConfigurationSource source)
DynamicPropertyUpdater()source - WatchedConfigurationSourcepublic void updateConfiguration(WatchedUpdateResult result)
WatchedUpdateListenerWatchedUpdateResult that is passed.updateConfiguration in interface WatchedUpdateListenerpublic boolean isIgnoreDeletesFromSource()
public WatchedConfigurationSource getSource()
WatchedConfigurationSource