@Deprecated
    public AbstractRetryingClientBuilder<O> maxTotalAttempts(int maxTotalAttempts) {
        checkState(retryConfigBuilder != null,
                   "You are using a RetryConfigMapping. You cannot set maxTotalAttempts.");
        checkArgument(maxTotalAttempts > 0, "maxTotalAttempts: %s (expected: > 0)", maxTotalAttempts);

        retryConfigBuilder.maxTotalAttempts(maxTotalAttempts);
        return this;
    }
Sets the maximum allowed number of total attempts. If unspecified, the value from
{@link Flags#defaultMaxTotalAttempts()} will be used.

@return {@code this} to support method chaining.

@deprecated Use {@link RetryConfigBuilder#maxTotalAttempts(int)} instead.
core/src/main/java/com/linecorp/armeria/client/retry/AbstractRetryingClientBuilder.java