public class CachedAtomicLong extends Object
DistributedAtomicNumber and allocates values in chunks for better performance| Constructor and Description |
|---|
CachedAtomicLong(DistributedAtomicLong number,
int cacheFactor) |
public CachedAtomicLong(DistributedAtomicLong number, int cacheFactor)
number - the number to usecacheFactor - the number of values to allocate at a timepublic AtomicValue<Long> next() throws Exception
Exception - errorsCopyright © 2011–2016 The Apache Software Foundation. All rights reserved.