Tanzu GemFire Distributed Types Java API Reference
Package dev.gemfire.dtype
Interface DCounter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longget()Get the current value.longincrement(long delta)Update the value.
-
-
-
Method Detail
-
get
long get()
Get the current value.- Returns:
- the current value
-
increment
long increment(long delta)
Update the value. The returned value reflects the current, local value. Any updates, performed by other clients, will not be reflected in the returned value. Useget()to retrieve the most up-to-date value.- Parameters:
delta- the amount to update by - can be either positive or negative- Returns:
- the current, local value
-
-