LongAccumulator
Class LongAccumulator
- java.lang.Object
-
- java.lang.Number
-
- java.util.concurrent.atomic.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 登录查看完整内容