Class Retrier.DelayStrategy

  • Enclosing interface:
    Retrier

    public static final class Retrier.DelayStrategy
    extends Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static jetbrains.buildServer.util.retry.DelayListener NO_DELAY
      No delay between retries.
    • Field Detail

      • NO_DELAY

        public static final jetbrains.buildServer.util.retry.DelayListener NO_DELAY
        No delay between retries.
    • Method Detail

      • linearBackOff

        public static jetbrains.buildServer.util.retry.DelayListener linearBackOff​(int delayStepMs)
        The delay increases linearly with the number of retries.
        Example: if the delay is configured to be 5ms, the first retry will wait 5ms, the second 10ms, the third 15ms, (...)
        Parameters:
        delayStepMs - the delay in milliseconds in between retries
      • constantBackOff

        public static jetbrains.buildServer.util.retry.DelayListener constantBackOff​(int delayStepMs)
        The delay is constant amonst all retries.
        Example: if the delay is configured to be 5ms, the first retry will wait 5ms, the second as well, and all the other retries.
        Parameters:
        delayStepMs - the delay in milliseconds in between retries
      • exponentialBackoff

        public static jetbrains.buildServer.util.retry.DelayListener exponentialBackoff​(int delayStepMs)
        The delay increases exponentially with the number of retries, with a function of 2^retry.
        Example: if the delay is configured to be 5ms, the first retry will wait 5ms, the second 10ms, the third 20ms, the fourth 40ms, (...)
        Parameters:
        delayStepMs - the delay in milliseconds in between retries