HealthMonitorConfig class
Configuration for ConnectionHealthMonitor (NFR-REL-001~003).
Constructors
- HealthMonitorConfig({Duration checkInterval = const Duration(seconds: 30), int maxReconnectAttempts = 0, Duration reconnectDelay = const Duration(seconds: 5), Duration maxReconnectDelay = const Duration(seconds: 30)})
-
const
- HealthMonitorConfig.defaults()
-
factory
Properties
- checkInterval → Duration
-
How often health is swept: keepalive pings on transient links, plus the
scan for
errorentries to reconnect. This is a DETECTION cadence only — retry pacing is reconnectDelay/maxReconnectDelay, so a host may make detection fast without also making retries hammer.final - hashCode → int
-
The hash code for this object.
no setterinherited
- maxReconnectAttempts → int
-
Retry ceiling per server.
0(the default) means never give up while monitoring runs — an open app keeps trying, paced by the backoff below.final - maxReconnectDelay → Duration
-
Backoff ceiling. This — not an attempt count — is what keeps a dead server
from being dialled every couple of seconds forever.
final
- reconnectDelay → Duration
-
First backoff step. Each further consecutive failure doubles it, capped at
maxReconnectDelay.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited