com.bigdata.btree
Class ReadOnlyCounter
java.lang.Object
com.bigdata.btree.ReadOnlyCounter
- All Implemented Interfaces:
- ICounter
public class ReadOnlyCounter
- extends Object
- implements ICounter
A read-only view of an ICounter.
- Version:
- $Id: ReadOnlyCounter.java 2265 2009-10-26 12:51:06Z thompsonbry $
- 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 |
ReadOnlyCounter
public ReadOnlyCounter(ICounter src)
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.