of

fun of(maxAttempts: Int = DEFAULT.maxAttempts, maxRetryAfter: Duration = DEFAULT.maxRetryAfter, backoff: Duration = DEFAULT.backoff): RetryPolicy

A policy of the given bounds; each left out is as in DEFAULT.


fun of(maxAttempts: Int, maxRetryAfter: Duration, backoff: Duration): RetryPolicy

A policy of the given bounds with Java types, for Java callers.