HeartbeatConfig
data class HeartbeatConfig(val interval: Duration = 5.seconds, val timeout: Duration = 15.seconds, val reconnectWindow: Duration = 60.seconds, val resumeTimeout: Duration = timeout)
Configuration for HeartbeatPartitionDetector.
Defaults: 5 s ping interval, 15 s timeout, 60 s reconnect window, 15 s resume timeout. Override via RoomConfig when the application needs different timing — for example, a longer reconnectWindow for a long idle period.
Properties
Link copied to clipboard
How long after first becoming unresponsive before the peer is considered lost.
Link copied to clipboard
Deadline for one attempt of a joiner's reconnect: a Hello awaiting the host's Welcome or Reject. When it elapses with no verdict the attempt ends as timed out and the reconnect tries again, instead of parking. An attempt whose seam tears first ends at once, without waiting this out: no reply can come back over it.