LongAdder

Class 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