com.bigdata.btree
Class BTree.Counter
java.lang.Object
com.bigdata.btree.BTree.Counter
- All Implemented Interfaces:
- ICounter
- Enclosing class:
- BTree
public static class BTree.Counter
- extends Object
- implements ICounter
Mutable counter.
- Author:
- Bryan Thompson
|
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). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BTree.Counter
public BTree.Counter(BTree btree)
get
public long get()
- Description copied from interface:
ICounter
- The current value of the counter (initially zero).
- Specified by:
get in interface ICounter
incrementAndGet
public long incrementAndGet()
- Description copied from interface:
ICounter
- Increment the current value of the counter and then return its value
(atomic).
- Specified by:
incrementAndGet in interface ICounter
Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.