static final class Tracer.AtomicTracerStatMap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Long> |
map |
Constructor and Description |
---|
AtomicTracerStatMap() |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.Map<java.lang.String,java.lang.Long> |
getMap()
Returns a map of key:value pairs.
|
(package private) void |
incrementBy(java.lang.String key,
long delta)
Atomically increment the specified field by the specified amount.
|
private final java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Long> map
void incrementBy(java.lang.String key, long delta)
key
- the name of the fielddelta
- the amount by which to increment the fieldjava.util.Map<java.lang.String,java.lang.Long> getMap()