public final SELF maxAttempts(int maxAttempts) {
        this.maxAttempts = maxAttempts;
        return self();
    }
Sets the maximum number of attempts.
core/src/main/java/com/linecorp/armeria/client/retry/AbstractBackoffBuilder.java