HeartbeatConfig

data class HeartbeatConfig(val interval: Duration = 5.seconds, val timeout: Duration = 15.seconds, val reconnectWindow: Duration = 60.seconds)

Configuration for HeartbeatPartitionDetector.

Defaults: 5 s ping interval, 15 s timeout, 60 s reconnect window. Override via RoomConfig when the application needs different timing — for example, a longer reconnectWindow for a long idle period.

Constructors

Link copied to clipboard
constructor(interval: Duration = 5.seconds, timeout: Duration = 15.seconds, reconnectWindow: Duration = 60.seconds)

Properties

Link copied to clipboard

How often the detector sends a ping frame to the peer.

Link copied to clipboard

How long after first becoming unresponsive before the peer is considered lost.

Link copied to clipboard

How long without any inbound frame (ping or application) before the peer is considered unresponsive.