LifiPollStatusOptions

data class LifiPollStatusOptions(val everyMs: Long, val initialDelayMs: Long = 0, val timeoutMs: Long, val maxConsecutiveErrors: Int = 5)

Options controlling the LiFi status polling behavior.

Constructors

Link copied to clipboard
constructor(everyMs: Long, initialDelayMs: Long = 0, timeoutMs: Long, maxConsecutiveErrors: Int = 5)

Properties

Link copied to clipboard

The interval between status polls, in milliseconds (default: 10000).

Link copied to clipboard

An initial delay before the first poll, in milliseconds (default: 0).

Link copied to clipboard

The maximum number of consecutive transient errors tolerated before polling fails fast (default: 5). This prevents a persistent hard error (e.g. auth failure, malformed request) from being retried silently until the overall timeout elapses.

Link copied to clipboard

The overall timeout for polling, in milliseconds (default: 600000).