Interface ReconnectState

All Known Implementing Classes:
ReconnectState.Connected, ReconnectState.Disconnected, ReconnectState.GivingUp, ReconnectState.Reconnecting

Closed state machine describing the lifecycle of a reconnect controller.

Each variant carries the wall-clock timestamp() at which the transition was observed. Consumers dispatch with an exhaustive switch over ReconnectState; the compiler enforces coverage.

This type lives in the api module (not core.rpc) so that ReconnectStateChangedEvent can reference it without inverting the module dependency direction.

  • Method Details

    • timestamp

      long timestamp()