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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
    boolean
     
    protected boolean
     
     
     
    boolean
     

    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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.commons.configuration2.ImmutableConfiguration

    getEnum, getEnum
  • Constructor Details

    • ConcurrentConfiguration

      public ConcurrentConfiguration()
  • Method Details

    • addPropertyDirect

      protected void addPropertyDirect(String key, Object value)
      Specified by:
      addPropertyDirect in class org.apache.commons.configuration2.AbstractConfiguration
    • getPropertyInternal

      public Object getPropertyInternal(String key)
      Specified by:
      getPropertyInternal in class org.apache.commons.configuration2.AbstractConfiguration
    • getKeysInternal

      public Iterator getKeysInternal()
      Specified by:
      getKeysInternal in class org.apache.commons.configuration2.AbstractConfiguration
    • containsKeyInternal

      public boolean containsKeyInternal(String key)
      Specified by:
      containsKeyInternal in class org.apache.commons.configuration2.AbstractConfiguration
    • containsValueInternal

      protected boolean containsValueInternal(Object o)
      Specified by:
      containsValueInternal in class org.apache.commons.configuration2.AbstractConfiguration
    • isEmptyInternal

      public boolean isEmptyInternal()
      Specified by:
      isEmptyInternal in class org.apache.commons.configuration2.AbstractConfiguration
    • clearPropertyDirect

      protected void clearPropertyDirect(String key)
      Specified by:
      clearPropertyDirect in class org.apache.commons.configuration2.AbstractConfiguration