class HealthCheckRegistry {

    public void unregister(String name) {
        HealthCheck healthCheck;
        synchronized (lock) {
            healthCheck = healthChecks.remove(name);
            if (healthCheck instanceof AsyncHealthCheckDecorator) {
                ((AsyncHealthCheckDecorator) healthCheck).tearDown();
            }
        }
        if (healthCheck != null) {
            onHealthCheckRemoved(name, healthCheck);
        }
    }

    public  HealthCheckRegistry();
    public  HealthCheckRegistry(int asyncExecutorPoolSize);
    public  HealthCheckRegistry(ScheduledExecutorService asyncExecutorService);

}