Package org.apache.lucene.util
Class Counter.AtomicCounter
- java.lang.Object
-
- org.apache.lucene.util.Counter
-
- org.apache.lucene.util.Counter.AtomicCounter
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicLongcount
-
Constructor Summary
Constructors Modifier Constructor Description privateAtomicCounter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longaddAndGet(long delta)Adds the given delta to the counters current valuelongget()Returns the counters current value-
Methods inherited from class org.apache.lucene.util.Counter
newCounter, newCounter
-
-
-
-
Method Detail
-
addAndGet
public long addAndGet(long delta)
Description copied from class:CounterAdds the given delta to the counters current value
-
-