com.hazelcast.monitor

## Interface LocalFlakeIdGeneratorStats

- All Superinterfaces:
    com.hazelcast.internal.management.JsonSerializable, LocalInstanceStats

      public interface LocalFlakeIdGeneratorStats
      extends LocalInstanceStats

  local flake ID statistics to be used by `MemberState` implementations.

- - ### Field Summary

    - ### Fields inherited from interface com.hazelcast.monitor.LocalInstanceStats

      `STAT_NOT_AVAILABLE`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getBatchCount()` The average batch size can be calculated by dividing `getIdCount()` by `getBatchCount()`.
    `long` | `getIdCount()` Note that the ID count returned is the number of generated IDs not the number of consumed IDs.

    - ### Methods inherited from interface com.hazelcast.monitor.LocalInstanceStats

      `getCreationTime`

    - ### Methods inherited from interface com.hazelcast.internal.management.JsonSerializable

      `fromJson, toJson`

- - ### Method Detail

    - #### getBatchCount

          long getBatchCount()

      The average batch size can be calculated by dividing `getIdCount()` by `getBatchCount()`.
      Returns:
        the total number of times the ID generator has been used to generate a new ID batch since its `LocalInstanceStats.getCreationTime()`.

    - #### getIdCount

          long getIdCount()

      Note that the ID count returned is the number of generated IDs not the number of consumed IDs.
      Returns:
        the total number of IDs generated (the sum of IDs for all batches) since its `LocalInstanceStats.getCreationTime()`.

Copyright © 2019. All rights reserved.