public class LocalFlakeIdGeneratorStatsImpl extends Object implements LocalFlakeIdGeneratorStats
STAT_NOT_AVAILABLE
Constructor and Description |
---|
LocalFlakeIdGeneratorStatsImpl() |
Modifier and Type | Method and Description |
---|---|
void |
fromJson(JsonObject json) |
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() |
String |
toString() |
void |
update(int batchSize) |
public long getCreationTime()
LocalInstanceStats
getCreationTime
in interface LocalInstanceStats
public long getBatchCount()
LocalFlakeIdGeneratorStats
LocalFlakeIdGeneratorStats.getIdCount()
by
getBatchCount()
.getBatchCount
in interface LocalFlakeIdGeneratorStats
LocalInstanceStats.getCreationTime()
.public long getIdCount()
LocalFlakeIdGeneratorStats
getIdCount
in interface LocalFlakeIdGeneratorStats
LocalInstanceStats.getCreationTime()
.public void update(int batchSize)
public JsonObject toJson()
toJson
in interface JsonSerializable
public void fromJson(JsonObject json)
fromJson
in interface JsonSerializable
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.