Class ConcurrentConfiguration
- java.lang.Object
-
- org.apache.commons.configuration2.event.BaseEventSource
-
- org.apache.commons.configuration2.AbstractConfiguration
-
- org.apache.bookkeeper.common.conf.ConcurrentConfiguration
-
- All Implemented Interfaces:
org.apache.commons.configuration2.Configuration,org.apache.commons.configuration2.event.EventSource,org.apache.commons.configuration2.ImmutableConfiguration,org.apache.commons.configuration2.sync.SynchronizerSupport
public class ConcurrentConfiguration extends org.apache.commons.configuration2.AbstractConfigurationConfiguration 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 voidaddPropertyDirect(java.lang.String key, java.lang.Object value)protected voidclearPropertyDirect(java.lang.String key)booleancontainsKeyInternal(java.lang.String key)protected booleancontainsValueInternal(java.lang.Object o)java.util.IteratorgetKeysInternal()java.lang.ObjectgetPropertyInternal(java.lang.String key)booleanisEmptyInternal()-
Methods inherited from class org.apache.commons.configuration2.AbstractConfiguration
addErrorLogListener, addProperty, addPropertyInternal, append, beginRead, beginWrite, clear, clearInternal, clearProperty, cloneInterpolator, contains, containsKey, containsValue, copy, endRead, endWrite, get, get, getArray, getArray, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCollection, getCollection, getConfigurationDecoder, getConversionHandler, getDouble, getDouble, getDouble, getDuration, getDuration, getEncodedString, getEncodedString, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getKeys, getKeys, getKeysInternal, getKeysInternal, getList, getList, getList, getList, getListDelimiterHandler, getLogger, getLong, getLong, getLong, getProperties, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, getSynchronizer, immutableSubset, initLogger, installInterpolator, interpolate, interpolate, interpolatedConfiguration, isEmpty, isScalarValue, isThrowExceptionOnMissing, lock, setConfigurationDecoder, setConversionHandler, setDefaultLookups, setInterpolator, setListDelimiterHandler, setLogger, setParentInterpolator, setPrefixLookups, setProperty, setPropertyInternal, setSynchronizer, setThrowExceptionOnMissing, size, sizeInternal, subset, unlock
-
Methods inherited from class org.apache.commons.configuration2.event.BaseEventSource
addEventListener, clearErrorListeners, clearEventListeners, clone, copyEventListeners, createErrorEvent, createEvent, fireError, fireEvent, getEventListenerRegistrations, getEventListeners, isDetailEvents, removeEventListener, setDetailEvents
-
-
-
-
Method Detail
-
addPropertyDirect
protected void addPropertyDirect(java.lang.String key, java.lang.Object value)- Specified by:
addPropertyDirectin classorg.apache.commons.configuration2.AbstractConfiguration
-
getPropertyInternal
public java.lang.Object getPropertyInternal(java.lang.String key)
- Specified by:
getPropertyInternalin classorg.apache.commons.configuration2.AbstractConfiguration
-
getKeysInternal
public java.util.Iterator getKeysInternal()
- Specified by:
getKeysInternalin classorg.apache.commons.configuration2.AbstractConfiguration
-
containsKeyInternal
public boolean containsKeyInternal(java.lang.String key)
- Specified by:
containsKeyInternalin classorg.apache.commons.configuration2.AbstractConfiguration
-
containsValueInternal
protected boolean containsValueInternal(java.lang.Object o)
- Specified by:
containsValueInternalin classorg.apache.commons.configuration2.AbstractConfiguration
-
isEmptyInternal
public boolean isEmptyInternal()
- Specified by:
isEmptyInternalin classorg.apache.commons.configuration2.AbstractConfiguration
-
clearPropertyDirect
protected void clearPropertyDirect(java.lang.String key)
- Specified by:
clearPropertyDirectin classorg.apache.commons.configuration2.AbstractConfiguration
-
-