java.lang.Object
io.smallrye.reactive.messaging.kafka.health.BaseHealth
Direct Known Subclasses:
KafkaSinkHealth, KafkaSourceHealth

public abstract class BaseHealth extends Object
  • Field Details

    • CONNECTION_COUNT_METRIC_NAME

      public static final String CONNECTION_COUNT_METRIC_NAME
      See Also:
    • channel

      protected final String 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

      public abstract KafkaAdmin getAdmin()