LongAccumulator

Class LongAccumulator

All Implemented Interfaces:
Serializable
public class LongAccumulator
extends Number
implements Serializable

One or more variables that together maintain a running long value updated using a supplied function. When updates (method accumulate(long)) are contended across threads, the set of variables may grow dynamically to reduce contention. Method 登录查看完整内容