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()
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()
JsonSerializableJsonObject.toJson in interface JsonSerializablepublic void fromJson(JsonObject json)
JsonSerializablejson object and mutates the
state of this object.fromJson in interface JsonSerializablejson - the JSON object carrying state for this objectCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.