public int maxTotalAttempts() {
        return maxTotalAttempts;
    }
Returns the maximum allowed number of total attempts made by a {@link RetryingClient}.
core/src/main/java/com/linecorp/armeria/client/retry/RetryConfig.java