osmq.util
Class Accumulator
java.lang.Object
osmq.util.Accumulator
- public class Accumulator
- extends java.lang.Object
Encapsulate a long integer value, and provides thread-save
methods to increment, decrement and reference the value.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Accumulator
public Accumulator()
Accumulator
public Accumulator(long count)
increment
public void increment()
decrement
public void decrement()
incrementBy
public void incrementBy(int v)
decrementBy
public void decrementBy(int v)
setCount
public void setCount(long count)
getCount
public long getCount()
setThreshold
public void setThreshold(long threshold)
getThreshold
public long getThreshold()