public class LocalFlakeIdGeneratorStatsImpl extends Object implements LocalFlakeIdGeneratorStats
STAT_NOT_AVAILABLE
Constructor and Description |
---|
LocalFlakeIdGeneratorStatsImpl() |
Modifier and Type | Method and Description |
---|---|
void |
fromJson(com.eclipsesource.json.JsonObject json) |
long |
getBatchCount()
The average batch size can be calculated by dividing
LocalFlakeIdGeneratorStats.getIdCount() by
LocalFlakeIdGeneratorStats.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.
|
com.eclipsesource.json.JsonObject |
toJson() |
String |
toString() |
void |
update(int batchSize) |
public long getCreationTime()
LocalInstanceStats
getCreationTime
in interface LocalInstanceStats
public long getBatchCount()
LocalFlakeIdGeneratorStats
LocalFlakeIdGeneratorStats.getIdCount()
by
LocalFlakeIdGeneratorStats.getBatchCount()
.getBatchCount
in interface LocalFlakeIdGeneratorStats
LocalInstanceStats.getCreationTime()
.public long getIdCount()
LocalFlakeIdGeneratorStats
getIdCount
in interface LocalFlakeIdGeneratorStats
LocalInstanceStats.getCreationTime()
.public void update(int batchSize)
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.