public interface GridCacheAtomicSequence
get() synchronously gets current value from atomic sequence.
get..(..) methods synchronously get current value from atomic sequence
and increase atomic sequences value.
add..(..) increment(..) methods synchronously increase atomic sequences value
and return increased value.
batchSize(int size) sets batch size of current atomic sequence.
batchSize() gets current batch size of atomic sequence.
name() gets name of atomic sequence.
| Modifier and Type | Method and Description |
|---|---|
long |
addAndGet(long l)
Adds
l elements to atomic sequence and gets value of atomic sequence. |
int |
batchSize()
Gets local batch size for this atomic sequence.
|
void |
batchSize(int size)
Sets local batch size for atomic sequence.
|
long |
get()
Gets current value of atomic sequence.
|
long |
getAndAdd(long l)
Gets current value of atomic sequence and adds
l elements. |
long |
getAndIncrement()
Gets and increments current value of atomic sequence.
|
long |
incrementAndGet()
Increments and returns the value of atomic sequence.
|
String |
name()
Name of atomic sequence.
|
boolean |
removed()
Gets status of atomic sequence.
|
String name()
long get()
throws GridException
GridException - If operation failed.long incrementAndGet()
throws GridException
GridException - If operation failed.long getAndIncrement()
throws GridException
GridException - If operation failed.long addAndGet(long l)
throws GridException
l elements to atomic sequence and gets value of atomic sequence.l - Number of added elements.GridException - If operation failed.long getAndAdd(long l)
throws GridException
l elements.l - Number of added elements.GridException - If operation failed.int batchSize()
void batchSize(int size)
size - Sequence batch size. Must be more then 0.boolean removed()
true if atomic sequence was removed from cache, false otherwise.Copyright © 2014. All rights reserved.