package com.codahale.metrics.health;
import java.util.EventListener;
A listener contract for HealthCheckRegistry
events. /**
* A listener contract for {@link HealthCheckRegistry} events.
*/
public interface HealthCheckRegistryListener extends EventListener {
Called when a new HealthCheck
is added to the registry. Params: - name – the name of the health check
- healthCheck – the health check
/**
* Called when a new {@link HealthCheck} is added to the registry.
*
* @param name the name of the health check
* @param healthCheck the health check
*/
void onHealthCheckAdded(String name, HealthCheck healthCheck);
Called when a HealthCheck
is removed from the registry. Params: - name – the name of the health check
- healthCheck – the health check
/**
* Called when a {@link HealthCheck} is removed from the registry.
*
* @param name the name of the health check
* @param healthCheck the health check
*/
void onHealthCheckRemoved(String name, HealthCheck healthCheck);
}