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)
MetricsHealthCheckFactoryregisterHealthCheck in interface MetricsHealthCheckFactoryname - A human readable, short name of the metric.check - The health check to be performed regularly.public Stream<Metric> registered()
registered in interface MetricsFactory