public static class NullMetricsFactory.NullHealthCheckFactory extends Object implements MetricsHealthCheckFactory
Constructor and Description |
---|
NullHealthCheckFactory() |
Modifier and Type | Method and Description |
---|---|
Stream<Metric> |
registered() |
MetricsHealthCheck |
registerHealthCheck(String name,
MetricsHealthCheck check)
Create a MetricsHealthCheck instance.
|
public MetricsHealthCheck registerHealthCheck(String name, MetricsHealthCheck check)
MetricsHealthCheckFactory
registerHealthCheck
in interface MetricsHealthCheckFactory
name
- A human readable, short name of the metric.check
- The health check to be performed regularly.public Stream<Metric> registered()
registered
in interface MetricsFactory