registerHealthCheck
public MetricsHealthCheck registerHealthCheck(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:
name
- 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.apache.polygene.spi.metrics.DefaultMetric.NULL if not supported.