public static class RetryPolicy.FixedRetryPolicy extends Object implements RetryPolicy
RetryPolicy
with fixed timeout, delay and max attempts.RetryPolicy.FixedRetryPolicy
NONE
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, wait
fixed, fromConfig
public long timeoutFor(int attempt)
timeoutFor
in interface RetryPolicy
public long retryAfter(int attempt, Exception exception)
retryAfter
in interface RetryPolicy
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.