public class ParameterMap extends ConcurrentHashMap<String,Object> implements Bindings
A concurrently accessible parameter map which holds both keys and values as strings. An atomic change counter tracks updates, to allow interested consumers to determine when to re-read values across threads. The basic format is <paramname>=<paramvalue>;...
To create a parameter map, use one of the static parse... methods.
No non-String types are used internally. Everything is encoded as a String, even though the generic type is parameterized for Bindings support.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ParameterMap.Listener |
ConcurrentHashMap.KeySetView<K,V>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ParameterMap(Map<String,String> valueMap) |
compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, valuesclonefinalize, getClass, notify, notifyAll, wait, wait, waitcontainsKeycompute, computeIfAbsent, computeIfPresent, containsValue, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, valuespublic int takeIntOrDefault(String paramName, int paramDefault)
public boolean takeBoolOrDefault(String paramName, boolean defaultBoolValue)
public void clear()
public AtomicLong getChangeCounter()
public String toString()
toString in class ConcurrentHashMap<String,Object>public void addListener(ParameterMap.Listener listener)
public void removeListener(ParameterMap.Listener listener)
public int getSize()
public static ParameterMap parseOrException(String encodedParams)
public static Optional<ParameterMap> parseParams(String encodedParams)
Copyright © 2017. All rights reserved.