public class LocalFlakeIdGeneratorStatsImpl extends Object implements LocalFlakeIdGeneratorStats
STAT_NOT_AVAILABLE| Constructor and Description |
|---|
LocalFlakeIdGeneratorStatsImpl() |
| 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 |
getBatchCount()
The average batch size can be calculated by dividing
LocalFlakeIdGeneratorStats.getIdCount() by
getBatchCount(). |
long |
getCreationTime()
Returns the creation time of this distributed object instance on this member.
|
long |
getIdCount()
Note that the ID count returned is the number of generated IDs not the number
of consumed IDs.
|
JsonObject |
toJson()
Serializes state represented by this object into a
JsonObject. |
String |
toString() |
void |
update(int batchSize) |
public long getCreationTime()
LocalInstanceStatsgetCreationTime in interface LocalInstanceStatspublic long getBatchCount()
LocalFlakeIdGeneratorStatsLocalFlakeIdGeneratorStats.getIdCount() by
getBatchCount().getBatchCount in interface LocalFlakeIdGeneratorStatsLocalInstanceStats.getCreationTime().public long getIdCount()
LocalFlakeIdGeneratorStatsgetIdCount in interface LocalFlakeIdGeneratorStatsLocalInstanceStats.getCreationTime().public void update(int batchSize)
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 © 2020 Hazelcast, Inc.. All Rights Reserved.