@Deprecated
    public static Function<? super HttpClient, RetryingClient>
    newDecorator(RetryRule retryRule, int maxTotalAttempts, long responseTimeoutMillisForEachAttempt) {
        return builder(retryRule).maxTotalAttempts(maxTotalAttempts)
                                 .responseTimeoutMillisForEachAttempt(responseTimeoutMillisForEachAttempt)
                                 .newDecorator();
    }
Creates a new {@link HttpClient} decorator that handles failures of an invocation and retries HTTP
requests.

@param retryRule the retry rule
@param maxTotalAttempts the maximum number of total attempts
@param responseTimeoutMillisForEachAttempt response timeout for each attempt. {@code 0} disables
                                           the timeout

@deprecated Use {@link #newDecorator(RetryConfig)} instead.
core/src/main/java/com/linecorp/armeria/client/retry/RetryingClient.java