Class FuzzingBackOffGenerator


  • public class FuzzingBackOffGenerator
    extends java.lang.Object
    Simple fibonacci back off with fuzzing. This is important for reconnection so that everyone doesn't retry at the same time.
    • Constructor Detail

      • FuzzingBackOffGenerator

        public FuzzingBackOffGenerator​(int initialBackOff,
                                       int maxBackOff,
                                       double randomizationFactor)
        Parameters:
        initialBackOff - Initial value to back off. This class does not interpret the meaning of this value. must be > 0
        maxBackOff - Max value to back off
        randomizationFactor - between 0 and 1 to control the range of randomness.