retry
A retry policy that wraps another policy and defines which failures immediately stop the retries.
val innerPolicy = retry.Backoff.forever val policy = retry.FailFast(innerPolicy) { case e: FooException => true case e: RuntimeException => isFatal(e.getCause) } val future = policy(issueRequest)
When the provided partial function is not defined at a particular throwable, the retry logic is defined by the wrapped policy.
(Since version ) see corresponding Javadoc for more information.
A retry policy that wraps another policy and defines which failures immediately stop the retries.
When the provided partial function is not defined at a particular throwable, the retry logic is defined by the wrapped policy.