Skip to main content
Class Configuration for exponential-backoff polling loops used throughout the SDK.
The delay between consecutive poll attempts grows exponentially from initialDelay up to maxDelay, with optional random jitter to prevent thundering-herd effects when many clients poll in parallel. The total number of attempts is capped at maxAttempts.

Constructors

CrossmintPollingConfig

Creates a polling configuration.

Properties

initialDelay

Delay before the first retry (doubles each attempt up to maxDelay).

maxDelay

Upper bound on the delay between attempts.

maxAttempts

Maximum number of poll iterations before timing out.

jitter

When true, each computed delay is multiplied by a random factor in the range [0.5, 1.0) to spread retries across time.

backoffFactor

Multiplicative factor applied to the delay each iteration.

Methods

delayForAttempt

Computes the delay for a given zero-based attempt index.