Determines the delay between retries. If the return value is Duration.ZERO, the delay is considered to be defined externally and the default delay provider is skipped.
Duration.ZERO
the current retry attempt. Starts at 1.