Class KafkaSinkHealth
- java.lang.Object
-
- io.smallrye.reactive.messaging.kafka.health.BaseHealth
-
- io.smallrye.reactive.messaging.kafka.health.KafkaSinkHealth
-
public class KafkaSinkHealth extends BaseHealth
-
-
Field Summary
-
Fields inherited from class io.smallrye.reactive.messaging.kafka.health.BaseHealth
channel, CONNECTION_COUNT_METRIC_NAME
-
-
Constructor Summary
Constructors Constructor Description KafkaSinkHealth(KafkaConnectorOutgoingConfiguration config, Map<String,?> kafkaConfiguration, org.apache.kafka.clients.producer.Producer<?,?> producer)
-
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
-
KafkaSinkHealth
public KafkaSinkHealth(KafkaConnectorOutgoingConfiguration config, Map<String,?> kafkaConfiguration, org.apache.kafka.clients.producer.Producer<?,?> producer)
-
-
Method Detail
-
getAdmin
public KafkaAdmin getAdmin()
- Specified by:
getAdmin
in classBaseHealth
-
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
-
-