@Deprecated
    public static Function<? super RpcClient, RetryingRpcClient>
    newDecorator(RetryRuleWithContent<RpcResponse> retryRuleWithContent,
                 int maxTotalAttempts, long responseTimeoutMillisForEachAttempt) {
        return builder(retryRuleWithContent)
                .maxTotalAttempts(maxTotalAttempts)
                .responseTimeoutMillisForEachAttempt(responseTimeoutMillisForEachAttempt)
                .newDecorator();
    }
Creates a new {@link RpcClient} decorator that handles failures of an invocation and retries
RPC requests.

@param retryRuleWithContent 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/RetryingRpcClient.java