|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.event.EventSource
org.apache.commons.configuration.AbstractConfiguration
com.netflix.config.ConcurrentMapConfiguration
com.netflix.config.DynamicConfiguration
public class DynamicConfiguration
A configuration that polls a PolledConfigurationSource
according to the schedule set by a
scheduler. The property values in this configuration will be changed dynamically at runtime if the
value changes in the configuration source.
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.
Field Summary |
---|
Fields inherited from class org.apache.commons.configuration.AbstractConfiguration |
---|
END_TOKEN, EVENT_ADD_PROPERTY, EVENT_CLEAR, EVENT_CLEAR_PROPERTY, EVENT_READ_PROPERTY, EVENT_SET_PROPERTY, START_TOKEN |
Constructor Summary | |
---|---|
DynamicConfiguration(PolledConfigurationSource source,
AbstractPollingScheduler scheduler)
Create an instance and start polling the configuration source. |
Method Summary | |
---|---|
PolledConfigurationSource |
getSource()
|
protected void |
init(PolledConfigurationSource source,
AbstractPollingScheduler scheduler)
Initialize the configuration. |
void |
stopLoading()
Stops the scheduler |
Methods inherited from class com.netflix.config.ConcurrentMapConfiguration |
---|
addConfigurationListener, addErrorListener, addProperty, addPropertyDirect, clear, clearConfigurationListeners, clearErrorListeners, clearPropertyDirect, containsKey, copy, fireError, fireEvent, getConfigurationListeners, getErrorListeners, getKeys, getProperties, getProperty, isEmpty, loadProperties, removeConfigurationListener, removeErrorListener, setProperty |
Methods inherited from class org.apache.commons.configuration.AbstractConfiguration |
---|
addErrorLogListener, 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, subset |
Methods inherited from class org.apache.commons.configuration.event.EventSource |
---|
clone, createErrorEvent, createEvent, isDetailEvents, setDetailEvents |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamicConfiguration(PolledConfigurationSource source, AbstractPollingScheduler scheduler)
source
- PolledConfigurationSource to pollscheduler
- AbstractPollingScheduler whose AbstractPollingScheduler.schedule(Runnable)
will be
used to determine the polling scheduleMethod Detail |
---|
protected void init(PolledConfigurationSource source, AbstractPollingScheduler scheduler)
DynamicConfiguration(PolledConfigurationSource, AbstractPollingScheduler)
before the initial polling. The default implementation is empty.
public void stopLoading()
public PolledConfigurationSource getSource()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |