domain/entities/odbc_event library

Classes

AutoReconnectAttempted
Emitted each time _withReconnect retries a failed call after a transient connection error. attempt is 1-based; maxAttempts reflects the policy in effect.
ConnectionLost
Emitted when _withReconnect notices the underlying ODBC connection has dropped (network error, server restart, idle timeout, etc.). The runtime may follow this with AutoReconnectAttempted events when auto-reconnect is enabled.
OdbcEvent
Connection-lifecycle events emitted by the package's IAdminService event bus (Stream<OdbcEvent>). Sealed so consumers can pattern-match exhaustively and the surface stays stable across additive changes.
PoolResize
Emitted by poolSetSize after a successful capacity change. Useful for dashboards that track pool elasticity over time.
SlowQueryDetected
Emitted when a query's wall-clock duration crosses the configured slow-query threshold (or the connection's queryTimeout). Threshold and emission policy are infrastructure concerns; the event itself is a pure observability signal.
WorkerRecovered
Emitted after the async worker pool finishes recovering from a crashed worker. Repository state (per-connection ids, pool checkouts, statement metadata) has already been wiped at this point — consumers may need to reconnect.