public class LocalPNCounterStatsImpl extends Object implements LocalPNCounterStats
STAT_NOT_AVAILABLE| Constructor and Description |
|---|
LocalPNCounterStatsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(JsonObject json) |
long |
getCreationTime()
Returns the creation time of this distributed object instance on this member.
|
long |
getTotalDecrementOperationCount()
Returns the total number of subtract (including decrement) operations on
this PN counter on this member.
|
long |
getTotalIncrementOperationCount()
Returns the total number of add (including increment) operations on this
PN counter on this member.
|
long |
getValue()
Returns the current value of this PN counter
|
void |
incrementDecrementOperationCount()
Increments the number of subtract (including decrement) operations on
this PN counter.
|
void |
incrementIncrementOperationCount()
Increments the number of add (including increment) operations on this
PN counter.
|
void |
setValue(long value)
Sets the current value for the PN counter.
|
JsonObject |
toJson() |
String |
toString() |
public long getCreationTime()
LocalInstanceStatsgetCreationTime in interface LocalInstanceStatspublic long getValue()
LocalPNCounterStatsgetValue in interface LocalPNCounterStatspublic long getTotalIncrementOperationCount()
LocalPNCounterStatsgetTotalIncrementOperationCount in interface LocalPNCounterStatspublic long getTotalDecrementOperationCount()
LocalPNCounterStatsgetTotalDecrementOperationCount in interface LocalPNCounterStatspublic void setValue(long value)
value - the PN counter valuepublic void incrementIncrementOperationCount()
public void incrementDecrementOperationCount()
public JsonObject toJson()
toJson in interface JsonSerializablepublic void fromJson(JsonObject json)
fromJson in interface JsonSerializableCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.