public static Function<? super RpcClient, RetryingRpcClient>
    newDecorator(RetryConfig<RpcResponse> retryConfig) {
        return builder(retryConfig).newDecorator();
    }
Creates a new {@link RpcClient} decorator that handles failures of an invocation and retries
RPC requests.
The {@link RetryConfig} object encapsulates {@link RetryRuleWithContent},
{@code maxContentLength}, {@code maxTotalAttempts} and {@code responseTimeoutMillisForEachAttempt}.
core/src/main/java/com/linecorp/armeria/client/retry/RetryingRpcClient.java