java.lang.Comparable
, DistributedDataStructure
, Lockable
, Notifiable
public interface Counter extends java.lang.Comparable, DistributedDataStructure, Notifiable
Modifier and Type | Field | Description |
---|---|---|
static long |
_value |
Gets the value of Counter.
|
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.