Package com.fayupable.snowflake.port
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 TypeMethodDescriptionvoidCalled every timenextId()successfully produces an id.voidCalled 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 timenextId()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.
-