RetryPolicy
data class RetryPolicy(val maxAttempts: Int = 4, val initialBackoff: Duration = 250.milliseconds, val backoffMultiplier: Double = 2.0, val maxBackoff: Duration = 5.seconds, val streamHealthyWindow: Duration = 10.seconds)
Exponential backoff policy applied to retryable ledger errors (see CantonError.retryable). A server-suggested delay from RetryInfo takes precedence over the computed backoff when it is longer.
Constructors
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Total attempts including the first; 1 disables retries.
Link copied to clipboard
Link copied to clipboard
A reconnecting stream's retry budget resets only after a connection has both delivered at least one update and stayed alive for this long; shorter-lived connections keep escalating the backoff and consuming the budget.