| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.util.Counter
public abstract class Counter
Simple counter class
| Constructor Summary | |
|---|---|
Counter()
 | 
|
| Method Summary | |
|---|---|
abstract  long | 
addAndGet(long delta)
Adds the given delta to the counters current value  | 
abstract  long | 
get()
Returns the counters current value  | 
static Counter | 
newCounter()
Returns a new counter.  | 
static Counter | 
newCounter(boolean threadSafe)
Returns a new counter.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Counter()
| Method Detail | 
|---|
public abstract long addAndGet(long delta)
delta - the delta to add
public abstract long get()
public static Counter newCounter()
public static Counter newCounter(boolean threadSafe)
threadSafe - true if the returned counter can be used by multiple
          threads concurrently.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||