Class ExponentialBackOff
- java.lang.Object
-
- io.smallrye.faulttolerance.core.retry.ExponentialBackOff
-
-
Constructor Summary
Constructors Constructor Description ExponentialBackOff(long initialDelayInMillis, int factor, Jitter jitter, long maxDelayInMillis)
-
-
-
Constructor Detail
-
ExponentialBackOff
public ExponentialBackOff(long initialDelayInMillis, int factor, Jitter jitter, long maxDelayInMillis)
-
-
Method Detail
-
getInMillis
public long getInMillis(Throwable cause)
- Specified by:
getInMillisin interfaceBackOff- Parameters:
cause- exception causing the retry attempt before which the delay occurs- Returns:
- non-negative number
-
-