Class Backoff


  • public class Backoff
    extends java.lang.Object
    • Method Detail

      • defaultBackoff

        public static Backoff defaultBackoff()
      • nextWaitMs

        public long nextWaitMs()
        Computes the next wait time and does NOT actually sleep. This increases the tracked number of retries;
        Returns:
        the next amount of time to wait, or -1 if max retries exceeded.