Class ExponentialBackoffStrategy

  • All Implemented Interfaces:

    public class ExponentialBackoffStrategy
    extends java.lang.Object
    implements BackoffStrategy

    Provides an exponential backoff strategy.

    Nikola Koevski
    • Field Detail

      • initTime

        protected long initTime
      • factor

        protected float factor
      • level

        protected int level
      • maxTime

        protected long maxTime
    • Constructor Detail

      • ExponentialBackoffStrategy

        public ExponentialBackoffStrategy()
      • ExponentialBackoffStrategy

        public ExponentialBackoffStrategy​(long initTime,
                                          float factor,
                                          long maxTime)
        initTime - in milliseconds for which the client is suspended after the first request
        factor - is the base of the power by which the waiting time increases
        maxTime - in milliseconds for which the client can be suspended