Class ConcurrentConfiguration
- java.lang.Object
-
- org.apache.commons.configuration.event.EventSource
-
- org.apache.commons.configuration.AbstractConfiguration
-
- org.apache.bookkeeper.common.conf.ConcurrentConfiguration
-
- All Implemented Interfaces:
org.apache.commons.configuration.Configuration
public class ConcurrentConfiguration extends org.apache.commons.configuration.AbstractConfiguration
Configuration view built on concurrent hash map for fast thread-safe access.Notes: Multi-property list aggregation will not work in this class. I.e. commons config normally combines all properties with the same key into one list property automatically. This class simply overwrites any existing mapping.
-
-
Constructor Summary
Constructors Constructor Description ConcurrentConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addPropertyDirect(java.lang.String key, java.lang.Object value)
protected void
clearPropertyDirect(java.lang.String key)
boolean
containsKey(java.lang.String key)
java.util.Iterator
getKeys()
java.lang.Object
getProperty(java.lang.String key)
boolean
isEmpty()
-
Methods inherited from class org.apache.commons.configuration.AbstractConfiguration
addErrorLogListener, addProperty, append, clear, clearProperty, copy, 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, setProperty, setThrowExceptionOnMissing, subset
-
Methods inherited from class org.apache.commons.configuration.event.EventSource
addConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, clone, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEvents
-
-
-
-
Method Detail
-
addPropertyDirect
protected void addPropertyDirect(java.lang.String key, java.lang.Object value)
- Specified by:
addPropertyDirect
in classorg.apache.commons.configuration.AbstractConfiguration
-
getProperty
public java.lang.Object getProperty(java.lang.String key)
-
getKeys
public java.util.Iterator getKeys()
-
containsKey
public boolean containsKey(java.lang.String key)
-
isEmpty
public boolean isEmpty()
-
clearPropertyDirect
protected void clearPropertyDirect(java.lang.String key)
- Overrides:
clearPropertyDirect
in classorg.apache.commons.configuration.AbstractConfiguration
-
-