LongAdder
Class LongAdder
- java.lang.Object
-
- java.lang.Number
-
- java.util.concurrent.atomic.LongAdder
- All Implemented Interfaces:
- Serializable
public class LongAdder extends Number implements Serializable
One or more variables that together maintain an initially zero long
sum. When updates (method add(long)
) are contended across threads, the set of variables may grow dynamically to reduce contention. Method s