-
public class ExponentialBackoffThe algorithm is ported from socket.io backoff algorithm.
-
-
Field Summary
Fields Modifier and Type Field Description public final static ExponentialBackoffDEFAULT
-
Constructor Summary
Constructors Constructor Description ExponentialBackoff(Random random, double initialDelay, double factor, double jitter, double maxDelay)
-
Method Summary
Modifier and Type Method Description longcalculate(longĀ attempt)
-