@Singleton
@Requires(beans=org.apache.kafka.clients.admin.AdminClient.class) @Requires(property="kafka.health.enabled",value="true",defaultValue="true")
public class KafkaHealthIndicator
extends java.lang.Object
implements io.micronaut.management.health.indicator.HealthIndicator
HealthIndicator
for Kafka.Constructor and Description |
---|
KafkaHealthIndicator(org.apache.kafka.clients.admin.AdminClient adminClient,
KafkaDefaultConfiguration defaultConfiguration)
Constructs a new Kafka health indicator for the given arguments.
|
Modifier and Type | Method and Description |
---|---|
io.reactivex.Flowable<io.micronaut.management.health.indicator.HealthResult> |
getResult() |
public KafkaHealthIndicator(org.apache.kafka.clients.admin.AdminClient adminClient, KafkaDefaultConfiguration defaultConfiguration)
adminClient
- The admin clientdefaultConfiguration
- The default configuration