public static class RetryPolicy.FixedRetryPolicy extends Object implements RetryPolicy
RetryPolicy with fixed timeout, delay and max attempts.RetryPolicy.FixedRetryPolicyNONE| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 RetryPolicypublic long retryAfter(int attempt,
Exception exception)
retryAfter 在接口中 RetryPolicyCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.