public interface IgniteAtomicSequence extends Closeable
get()
gets current value from atomic sequence.
get..(..)
methods get current value from atomic sequence
and increase atomic sequences value.
add..(..)
increment(..)
methods 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.
|
void |
close()
Removes this 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 IgniteException
IgniteException
- If operation failed.long incrementAndGet() throws IgniteException
IgniteException
- If operation failed.long getAndIncrement() throws IgniteException
IgniteException
- If operation failed.long addAndGet(long l) throws IgniteException
l
elements to atomic sequence and gets value of atomic sequence.l
- Number of added elements.IgniteException
- If operation failed.long getAndAdd(long l) throws IgniteException
l
elements.l
- Number of added elements.IgniteException
- 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.void close()
close
in interface AutoCloseable
close
in interface Closeable
IgniteException
- If operation failed.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024