java.lang.Comparable
, DistributedDataStructure
, Lockable
, Notifiable
public interface Counter extends java.lang.Comparable, DistributedDataStructure, Notifiable
Modifier and Type | Field | Description |
---|---|---|
static long |
_value |
Modifier and Type | Method | Description |
---|---|---|
long |
decrement() |
Decrement the value of distributed counter by one.
|
long |
decrementBy(long value) |
Decrement the value of distributed counter by the amount specified.
|
long |
getValue() |
Gets the value of counter.
|
long |
increment() |
Increment the value of distributed counter by one.
|
long |
incrementBy(long value) |
Increment the value of distributed counter by the amount specified.
|
long |
setValue(long value) |
Sets the given value of the counter.
|
getKey, getWriteThruOptions, setWriteThruOptions
addChangeListener, removeChangeListener
static final long _value
long setValue(long value)
value
- value to be assigned to the counter.long getValue()
long increment()
long decrement()
long incrementBy(long value)
value
- The value to increment by.long decrementBy(long value)
value
- The value to decrement by.