protected void doCall()

in observability/src/main/java/org/acme/observability/health/camel/CustomLivenessCheck.java [39:48]


    protected void doCall(HealthCheckResultBuilder builder, Map<String, Object> options) {
        int hits = hitCount.incrementAndGet();

        // Flag the check as DOWN on every 5th invocation, else it is UP
        if (hits % 5 == 0) {
            builder.down();
        } else {
            builder.up();
        }
    }