Package com.infilos.retry.backoff
Class RandomExponentialBackoffStrategy
- java.lang.Object
-
- com.infilos.retry.backoff.RandomExponentialBackoffStrategy
-
- All Implemented Interfaces:
BackoffStrategy
public class RandomExponentialBackoffStrategy extends Object implements BackoffStrategy
-
-
Constructor Summary
Constructors Constructor Description RandomExponentialBackoffStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkConfig(RetryConfig<?> config)
Duration
nextDelayToWait(int failedAttempts, Duration delayDuration)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.infilos.retry.BackoffStrategy
nextDelayToWait
-
-
-
-
Method Detail
-
nextDelayToWait
public Duration nextDelayToWait(int failedAttempts, Duration delayDuration)
- Specified by:
nextDelayToWait
in interfaceBackoffStrategy
-
checkConfig
public void checkConfig(RetryConfig<?> config)
- Specified by:
checkConfig
in interfaceBackoffStrategy
-
-