|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.curator.framework.recipes.atomic.CachedAtomicLong
public class CachedAtomicLong
Uses an DistributedAtomicNumber and allocates values in chunks for better performance
| Constructor Summary | |
|---|---|
CachedAtomicLong(DistributedAtomicLong number,
int cacheFactor)
|
|
| Method Summary | |
|---|---|
AtomicValue<java.lang.Long> |
next()
Returns the next value (incrementing by 1). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachedAtomicLong(DistributedAtomicLong number,
int cacheFactor)
number - the number to usecacheFactor - the number of values to allocate at a time| Method Detail |
|---|
public AtomicValue<java.lang.Long> next()
throws java.lang.Exception
java.lang.Exception - errors
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||