public static class RetryPolicy.FixedRetryPolicy extends Object implements RetryPolicy
RetryPolicy with fixed timeout, delay and max attempts.RetryPolicy.FixedRetryPolicyNONE| Modifier and Type | Method and Description |
|---|---|
long |
retryAfter(int attempt,
Exception exception) |
long |
timeoutFor(int attempt) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfixed, fromConfigpublic long timeoutFor(int attempt)
timeoutFor in interface RetryPolicypublic long retryAfter(int attempt,
Exception exception)
retryAfter in interface RetryPolicyCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.