Class KafkaSourceHealth
- java.lang.Object
-
- io.smallrye.reactive.messaging.kafka.health.BaseHealth
-
- io.smallrye.reactive.messaging.kafka.health.KafkaSourceHealth
-
public class KafkaSourceHealth extends BaseHealth
-
-
Field Summary
-
Fields inherited from class io.smallrye.reactive.messaging.kafka.health.BaseHealth
CONNECTION_COUNT_METRIC_NAME
-
-
Constructor Summary
Constructors Constructor Description KafkaSourceHealth(KafkaSource<?,?> source, KafkaConnectorIncomingConfiguration config, ReactiveKafkaConsumer<?,?> client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clientBasedReadinessCheck(HealthReport.HealthReportBuilder builder)
protected void
clientBasedStartupCheck(HealthReport.HealthReportBuilder builder)
KafkaAdmin
getAdmin()
protected void
metricsBasedReadinessCheck(HealthReport.HealthReportBuilder builder)
protected void
metricsBasedStartupCheck(HealthReport.HealthReportBuilder builder)
-
Methods inherited from class io.smallrye.reactive.messaging.kafka.health.BaseHealth
close, getMetric, isReady, isStarted
-
-
-
-
Constructor Detail
-
KafkaSourceHealth
public KafkaSourceHealth(KafkaSource<?,?> source, KafkaConnectorIncomingConfiguration config, ReactiveKafkaConsumer<?,?> client)
-
-
Method Detail
-
metricsBasedStartupCheck
protected void metricsBasedStartupCheck(HealthReport.HealthReportBuilder builder)
- Specified by:
metricsBasedStartupCheck
in classBaseHealth
-
metricsBasedReadinessCheck
protected void metricsBasedReadinessCheck(HealthReport.HealthReportBuilder builder)
- Specified by:
metricsBasedReadinessCheck
in classBaseHealth
-
clientBasedStartupCheck
protected void clientBasedStartupCheck(HealthReport.HealthReportBuilder builder)
- Specified by:
clientBasedStartupCheck
in classBaseHealth
-
clientBasedReadinessCheck
protected void clientBasedReadinessCheck(HealthReport.HealthReportBuilder builder)
- Specified by:
clientBasedReadinessCheck
in classBaseHealth
-
getAdmin
public KafkaAdmin getAdmin()
- Specified by:
getAdmin
in classBaseHealth
-
-