withFixedDelay


Description:

public Result<Retry,Error> withFixedDelay (Duration delay)

Sets fixed delay strategy.

All retries use the same sleep duration.

Parameters:

delay

fixed delay between attempts.

Returns:

Result.ok(this retry instance), or Result.error(RetryError.INVALID_ARGUMENT) when delay is negative.