Interface IdGeneratorStat

All Superinterfaces:
Stat
All Known Implementing Classes:
CosIdGeneratorStat, SegmentIdStat, SimpleIdGeneratorStat, SnowflakeIdStat

public interface IdGeneratorStat extends Stat
Statistical information for ID generators.
  • Method Details

    • getActual

      default @Nullable IdGeneratorStat getActual()
      Description copied from interface: Stat
      Gets the wrapped actual stat.
      Specified by:
      getActual in interface Stat
      Returns:
      the actual stat or null
    • getConverter

      @Nullable Stat getConverter()
      Gets the converter stat.
      Returns:
      the converter stat or null
    • simple

      static IdGeneratorStat simple(String kind, @Nullable IdGeneratorStat actual, Stat converter)
      Creates a simple stat with the specified kind and converter.
      Parameters:
      kind - the kind
      actual - the actual stat
      converter - the converter stat
      Returns:
      the stat
    • simple

      static IdGeneratorStat simple(String kind, Stat converter)
      Creates a simple stat with the specified kind and converter.
      Parameters:
      kind - the kind
      converter - the converter stat
      Returns:
      the stat