public class LocalPNCounterStatsImpl extends Object implements LocalPNCounterStats
STAT_NOT_AVAILABLE
Constructor and Description |
---|
LocalPNCounterStatsImpl() |
Modifier and Type | Method and Description |
---|---|
void |
fromJson(com.eclipsesource.json.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.
|
com.eclipsesource.json.JsonObject |
toJson() |
String |
toString() |
public long getCreationTime()
LocalInstanceStats
getCreationTime
in interface LocalInstanceStats
public long getValue()
LocalPNCounterStats
getValue
in interface LocalPNCounterStats
public long getTotalIncrementOperationCount()
LocalPNCounterStats
getTotalIncrementOperationCount
in interface LocalPNCounterStats
public long getTotalDecrementOperationCount()
LocalPNCounterStats
getTotalDecrementOperationCount
in interface LocalPNCounterStats
public void setValue(long value)
value
- the PN counter valuepublic void incrementIncrementOperationCount()
public void incrementDecrementOperationCount()
public com.eclipsesource.json.JsonObject toJson()
toJson
in interface JsonSerializable
public void fromJson(com.eclipsesource.json.JsonObject json)
fromJson
in interface JsonSerializable
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.