HedgeConfig

data class HedgeConfig(val hedgeDelay: Duration = 100.milliseconds, val maxHedges: Int = 1)(source)

Configuration for the hedged-request pattern.

Constructors

Link copied to clipboard
constructor(hedgeDelay: Duration = 100.milliseconds, maxHedges: Int = 1)

Properties

Link copied to clipboard

Delay before firing the first hedge attempt after the primary starts. Subsequent hedges (if maxHedges> 1) fire at hedgeDelay * (n + 1).

Link copied to clipboard

Maximum number of additional (hedge) attempts beyond the primary one.