Interface SnowflakeMetrics

All Known Implementing Classes:
MicrometerSnowflakeMetrics, NoOpSnowflakeMetrics

public interface SnowflakeMetrics
Output port for observing generator activity. Implementations decide where these events go (Micrometer, logs, nowhere). The core module never depends on a metrics backend directly.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called every time nextId() successfully produces an id.
    void
    Called every time the generator spins waiting for the clock to advance because the current millisecond's sequence capacity is exhausted.
  • Method Details

    • recordIdGenerated

      void recordIdGenerated()
      Called every time nextId() successfully produces an id.
    • recordSpinWait

      void recordSpinWait()
      Called every time the generator spins waiting for the clock to advance because the current millisecond's sequence capacity is exhausted.