public abstract class BaseHealth extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
channel |
static String |
CONNECTION_COUNT_METRIC_NAME |
Constructor and Description |
---|
BaseHealth(String channel) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
adminBasedHealthCheck(HealthReport.HealthReportBuilder builder) |
void |
close() |
abstract io.vertx.mutiny.kafka.admin.KafkaAdminClient |
getAdmin() |
org.apache.kafka.common.Metric |
getMetric(Map<org.apache.kafka.common.MetricName,? extends org.apache.kafka.common.Metric> metrics) |
void |
isReady(HealthReport.HealthReportBuilder builder) |
protected abstract void |
metricsBasedHealthCheck(HealthReport.HealthReportBuilder builder) |
public static final String CONNECTION_COUNT_METRIC_NAME
protected final String channel
public BaseHealth(String channel)
public void close()
public void isReady(HealthReport.HealthReportBuilder builder)
public org.apache.kafka.common.Metric getMetric(Map<org.apache.kafka.common.MetricName,? extends org.apache.kafka.common.Metric> metrics)
protected abstract void metricsBasedHealthCheck(HealthReport.HealthReportBuilder builder)
protected abstract void adminBasedHealthCheck(HealthReport.HealthReportBuilder builder)
public abstract io.vertx.mutiny.kafka.admin.KafkaAdminClient getAdmin()
Copyright © 2018–2021 SmallRye. All rights reserved.