private ResponseHeaders setCommonHeaders(ResponseHeaders headers) {
        final long maxLongPollingTimeoutSeconds;
        final long pingIntervalSeconds;
        if (isLongPollingEnabled()) {
            maxLongPollingTimeoutSeconds = Math.max(1, maxLongPollingTimeoutMillis / 1000);
            pingIntervalSeconds = Math.max(1, pingIntervalMillis / 1000);
        } else {
            maxLongPollingTimeoutSeconds = 0;
            pingIntervalSeconds = 0;
        }

        return setCommonHeaders(headers, maxLongPollingTimeoutSeconds, pingIntervalSeconds);
    }
Returns a new builder which builds a new {@link HealthCheckService}.
core/src/main/java/com/linecorp/armeria/server/healthcheck/HealthCheckService.java