registerHealthCheck
public MetricsHealthCheck registerHealthCheck(Class<?> origin,
String name,
MetricsHealthCheck check)
Create a MetricsHealthCheck instance.
If the same arguments are given twice, the same instance must be returned.
- Specified by:
registerHealthCheck in interface MetricsHealthCheckFactory
- Parameters:
origin - The class that instantiate the metricname - A human readable, short name of the metric.check - The health check to be performed regularly.
- Returns:
- A MetricsHealthCheck instance to be used, OR org.qi4j.spi.metrics.DefaultMetric.NULL if not supported.