Backoff

class Backoff(val online: Duration = 30.seconds, val initial: Duration = 1.seconds, val factor: Double = 2.0, val max: Duration = 30.seconds, val jitter: Double = 0.1) : Schedule(source)

online while online; while offline, starts at initial and multiplies by factor after each failed check, capped at max. jitter (0.0..1.0) randomises each offline delay by ± that fraction.

Constructors

Link copied to clipboard
constructor(online: Duration = 30.seconds, initial: Duration = 1.seconds, factor: Double = 2.0, max: Duration = 30.seconds, jitter: Double = 0.1)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard