PartialHealthCheckStrategyBuilder maxEndpointCount(int maxEndpointCount) {
        if (maxEndpointRatio != null) {
            throw new IllegalArgumentException("Maximum endpoint ratio is already set.");
        }

        checkArgument(maxEndpointCount > 0, "maxEndpointCount: %s (expected: 0 < maxEndpointCount <= MAX_INT)",
                      maxEndpointCount);

        this.maxEndpointCount = maxEndpointCount;
        return this;
    }
Sets the maximum endpoint count of target selected candidates.
The maximum endpoint count must greater than 0.
You can use only one of the maximum endpoint count or maximum endpoint ratio.
core/src/main/java/com/linecorp/armeria/client/endpoint/healthcheck/PartialHealthCheckStrategyBuilder.java