public class LocalPNCounterStatsImpl extends Object implements LocalPNCounterStats
STAT_NOT_AVAILABLE
Constructor and Description |
---|
LocalPNCounterStatsImpl() |
Modifier and Type | Method and Description |
---|---|
void |
fromJson(JsonObject json)
Extracts the state from the given
json object and mutates the
state of this object. |
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()
Serializes state represented by this object into a
JsonObject . |
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 JsonObject toJson()
JsonSerializable
JsonObject
.toJson
in interface JsonSerializable
public void fromJson(JsonObject json)
JsonSerializable
json
object and mutates the
state of this object.fromJson
in interface JsonSerializable
json
- the JSON object carrying state for this objectCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.