All Downloads are FREE. Search and download functionalities are using the official Maven repository.

restx.metrics.codahale.health.CodahaleHealthCheckAdapter Maven / Gradle / Ivy

package restx.metrics.codahale.health;

import restx.common.metrics.api.health.HealthCheck;

public class CodahaleHealthCheckAdapter extends com.codahale.metrics.health.HealthCheck {

    HealthCheck healthCheck;

    public CodahaleHealthCheckAdapter(HealthCheck healthCheck) {
        this.healthCheck = healthCheck;
    }

    @Override
    protected Result check() throws Exception {
        healthCheck.check();
        return Result.healthy();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy