|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICounter
An interface for a counter. Mutable btrees expose mutable counters while
read-only btrees do not. Like the mutable BTree, the mutable counter
is NOT thread-safe. An unpartitioned index exposes a single counter for the
entire index. A partitioned index exposes a counter per index partition and
the partition identified forms the high int32 for the counter.
IIndex.getCounter()| Method Summary | |
|---|---|
long |
get()
The current value of the counter (initially zero). |
long |
incrementAndGet()
Increment the current value of the counter and then return its value (atomic). |
| Method Detail |
|---|
long get()
long incrementAndGet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||