Class BaseHealth
java.lang.Object
io.smallrye.reactive.messaging.kafka.health.BaseHealth
- Direct Known Subclasses:
KafkaSinkHealth,KafkaSourceHealth
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBaseHealth(String channel, boolean topicVerificationEnabled, boolean startupTopicVerificationDisabled, boolean readinessTopicVerificationDisabled) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidclientBasedReadinessCheck(io.smallrye.reactive.messaging.health.HealthReport.HealthReportBuilder builder) protected abstract voidclientBasedStartupCheck(io.smallrye.reactive.messaging.health.HealthReport.HealthReportBuilder builder) voidclose()abstract KafkaAdmingetAdmin()org.apache.kafka.common.MetricbooleanvoidisReady(io.smallrye.reactive.messaging.health.HealthReport.HealthReportBuilder builder) voidisStarted(io.smallrye.reactive.messaging.health.HealthReport.HealthReportBuilder builder) booleanprotected abstract voidmetricsBasedReadinessCheck(io.smallrye.reactive.messaging.health.HealthReport.HealthReportBuilder builder) protected abstract voidmetricsBasedStartupCheck(io.smallrye.reactive.messaging.health.HealthReport.HealthReportBuilder builder)
-
Field Details
-
CONNECTION_COUNT_METRIC_NAME
- See Also:
-
channel
-
startupTopicVerificationDisabled
protected final boolean startupTopicVerificationDisabled -
readinessTopicVerificationDisabled
protected final boolean readinessTopicVerificationDisabled
-
-
Constructor Details
-
BaseHealth
public BaseHealth(String channel, boolean topicVerificationEnabled, boolean startupTopicVerificationDisabled, boolean readinessTopicVerificationDisabled)
-
-
Method Details
-
isReadinessTopicVerificationEnabled
public boolean isReadinessTopicVerificationEnabled() -
isStartupTopicVerificationEnabled
public boolean isStartupTopicVerificationEnabled() -
close
public void close() -
isStarted
public void isStarted(io.smallrye.reactive.messaging.health.HealthReport.HealthReportBuilder builder) -
isReady
public void isReady(io.smallrye.reactive.messaging.health.HealthReport.HealthReportBuilder builder) -
getMetric
public org.apache.kafka.common.Metric getMetric(Map<org.apache.kafka.common.MetricName, ? extends org.apache.kafka.common.Metric> metrics) -
metricsBasedStartupCheck
protected abstract void metricsBasedStartupCheck(io.smallrye.reactive.messaging.health.HealthReport.HealthReportBuilder builder) -
metricsBasedReadinessCheck
protected abstract void metricsBasedReadinessCheck(io.smallrye.reactive.messaging.health.HealthReport.HealthReportBuilder builder) -
clientBasedStartupCheck
protected abstract void clientBasedStartupCheck(io.smallrye.reactive.messaging.health.HealthReport.HealthReportBuilder builder) -
clientBasedReadinessCheck
protected abstract void clientBasedReadinessCheck(io.smallrye.reactive.messaging.health.HealthReport.HealthReportBuilder builder) -
getAdmin
-