Class LongContainer<N extends Number>
java.lang.Object
java.util.AbstractMap<Metric,N>
java.util.concurrent.ConcurrentHashMap<Metric,N>
org.apache.dubbo.metrics.model.container.LongContainer<N>
- Type Parameters:
N-
- All Implemented Interfaces:
Serializable,ConcurrentMap<Metric,,N> Map<Metric,N>
- Direct Known Subclasses:
AtomicLongContainer,LongAccumulatorContainer
Long type data container
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
ConcurrentHashMap.KeySetView<K,V> Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionLongContainer(MetricsKeyWrapper metricsKeyWrapper, Supplier<N> initFunc, BiConsumer<Long, N> consumerFunc) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanisKeyWrapper(MetricsKey metricsKey, String registryOpType) voidsetValueSupplier(Function<Metric, Long> valueSupplier) booleanspecifyType(String type) toString()Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, values
-
Constructor Details
-
LongContainer
public LongContainer(MetricsKeyWrapper metricsKeyWrapper, Supplier<N> initFunc, BiConsumer<Long, N> consumerFunc)
-
-
Method Details
-
specifyType
-
getMetricsKeyWrapper
-
isKeyWrapper
-
getInitFunc
-
getConsumerFunc
-
getValueSupplier
-
setValueSupplier
-
toString
- Overrides:
toStringin classConcurrentHashMap<Metric,N extends Number>
-
equals
-
hashCode
public int hashCode()
-