Package 

Class ExponentialBackoff


  • 
    public class ExponentialBackoff
    
                        

    The algorithm is ported from socket.io backoff algorithm.

    • Constructor Summary

      Constructors 
      Constructor Description
      ExponentialBackoff(Random random, double initialDelay, double factor, double jitter, double maxDelay)
    • Method Summary

      Modifier and Type Method Description
      long calculate(longĀ attempt)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExponentialBackoff

        ExponentialBackoff(Random random, double initialDelay, double factor, double jitter, double maxDelay)
    • Method Detail