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()
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()
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 © 2021 Hazelcast, Inc.. All Rights Reserved.