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.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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPropertyDirect(String key, Object value) protected voidbooleanprotected booleanbooleanMethods 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, unlockMethods inherited from class org.apache.commons.configuration2.event.BaseEventSource
addEventListener, clearErrorListeners, clearEventListeners, clone, copyEventListeners, createErrorEvent, createEvent, fireError, fireEvent, getEventListenerRegistrations, getEventListeners, isDetailEvents, removeEventListener, setDetailEventsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.configuration2.ImmutableConfiguration
getEnum, getEnum
-
Constructor Details
-
ConcurrentConfiguration
public ConcurrentConfiguration()
-
-
Method Details
-
addPropertyDirect
- Specified by:
addPropertyDirectin classorg.apache.commons.configuration2.AbstractConfiguration
-
getPropertyInternal
- Specified by:
getPropertyInternalin classorg.apache.commons.configuration2.AbstractConfiguration
-
getKeysInternal
- Specified by:
getKeysInternalin classorg.apache.commons.configuration2.AbstractConfiguration
-
containsKeyInternal
- Specified by:
containsKeyInternalin classorg.apache.commons.configuration2.AbstractConfiguration
-
containsValueInternal
- Specified by:
containsValueInternalin classorg.apache.commons.configuration2.AbstractConfiguration
-
isEmptyInternal
public boolean isEmptyInternal()- Specified by:
isEmptyInternalin classorg.apache.commons.configuration2.AbstractConfiguration
-
clearPropertyDirect
- Specified by:
clearPropertyDirectin classorg.apache.commons.configuration2.AbstractConfiguration
-