Class BaseHealth
java.lang.Object
io.smallrye.reactive.messaging.kafka.health.BaseHealth
- Direct Known Subclasses:
KafkaShareGroupSourceHealth,KafkaSinkHealth,KafkaSourceHealth
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBaseHealth(String channel, KafkaAdminClientRegistry adminClientRegistry, 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.Metricorg.apache.kafka.common.Metricprotected abstract Optional<Map<org.apache.kafka.common.MetricName, ? extends org.apache.kafka.common.Metric>> booleanvoidisReady(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:
-
CONNECTION_CREATION_TOTAL_METRIC_NAME
- See Also:
-
channel
-
startupTopicVerificationDisabled
protected final boolean startupTopicVerificationDisabled -
readinessTopicVerificationDisabled
protected final boolean readinessTopicVerificationDisabled
-
-
Constructor Details
-
BaseHealth
public BaseHealth(String channel, KafkaAdminClientRegistry adminClientRegistry, 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) -
getConnectionCountMetric
public org.apache.kafka.common.Metric getConnectionCountMetric() -
getConnectionCreationTotalMetric
public org.apache.kafka.common.Metric getConnectionCreationTotalMetric() -
getMetrics
-
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
-