RetryDefaults

The node's defaults of how it retries a timer's send and an entry its downstream pushes back, and the one backoff between retries: the runtime's options are built from them, and the test DSL settles a spec's timers and handlings by them, so a spec retries and parks as a node of the default options does. Read on a retry only, never on a hot path.

Properties

Link copied to clipboard

The attempts of an entry its downstream pushes back before its aggregate parks (wow.subscription.backpressure.max-attempts).

Link copied to clipboard

The wait after a timer's first failed send.

Link copied to clipboard
const val TIMER_MAX_ATTEMPTS: Int = 10

The attempts a timer's send takes before the timer parks (wow.timers.max-attempts).

Link copied to clipboard

The longest wait between a timer's sends.

Link copied to clipboard
const val TIMER_MAX_BUSY_RETRIES: Int = 20

The sends a busy target refuses before a timer's attempt is spent.

Link copied to clipboard
const val TIMER_MULTIPLIER: Double = 2.0

How much longer each wait after a timer's failed send is than the one before.

Functions

Link copied to clipboard
fun backoff(initial: Duration, max: Duration, multiplier: Double, failures: Int): Duration

The wait after failures failed attempts (1 for the first): initial, multiplier times longer after each next one, never longer than max.