public SELF maxEndpointRatio(double maxEndpointRatio) {
        if (maxEndpointCount != null) {
            throw new IllegalArgumentException("Maximum endpoint count is already set.");
        }

        checkArgument(maxEndpointRatio > 0 && maxEndpointRatio <= 1.0,
                      "maxEndpointRatio: %s (expected: 0.0 < maxEndpointRatio <= 1.0)",
                      maxEndpointRatio);

        this.maxEndpointRatio = maxEndpointRatio;
        return self();
    }
Sets the maximum endpoint ratio of target selected candidates.
core/src/main/java/com/linecorp/armeria/client/endpoint/healthcheck/AbstractHealthCheckedEndpointGroupBuilder.java