Interface Delay

    • Method Detail

      • nextDelay

        Duration nextDelay​(int attempt)
        Returns the new delay amount to stabilize as defined by Duration time. This returns -1 to indicate that we are done with delays from this instance Different implementations can return different values
        Parameters:
        attempt - , starts with 1
        Returns:
        the next amount to wait for or Duration.ZERO to indicate delay is complete