Package com.codahale.metrics.health
Interface HealthCheckRegistryListener
-
- All Superinterfaces:
EventListener
public interface HealthCheckRegistryListener extends EventListener
A listener contract forHealthCheckRegistry
events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onHealthCheckAdded(String name, HealthCheck healthCheck)
Called when a newHealthCheck
is added to the registry.void
onHealthCheckRemoved(String name, HealthCheck healthCheck)
Called when aHealthCheck
is removed from the registry.
-
-
-
Method Detail
-
onHealthCheckAdded
void onHealthCheckAdded(String name, HealthCheck healthCheck)
Called when a newHealthCheck
is added to the registry.- Parameters:
name
- the name of the health checkhealthCheck
- the health check
-
onHealthCheckRemoved
void onHealthCheckRemoved(String name, HealthCheck healthCheck)
Called when aHealthCheck
is removed from the registry.- Parameters:
name
- the name of the health checkhealthCheck
- the health check
-
-