@Singleton
@Requires(classes=io.micronaut.management.health.indicator.HealthIndicator.class) @Requires(property="kafka.health.streams.enabled",value="true",defaultValue="true")
public class KafkaStreamsHealth
extends java.lang.Object
implements io.micronaut.management.health.indicator.HealthIndicator
HealthIndicator for Kafka Streams.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENABLED_PROPERTY |
| Constructor and Description |
|---|
KafkaStreamsHealth(KafkaStreamsFactory kafkaStreamsFactory,
io.micronaut.management.health.aggregator.HealthAggregator<?> healthAggregator)
Constructor for the health check.
|
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<io.micronaut.management.health.indicator.HealthResult> |
getResult()
Get the health result of the streams.
|
public static final java.lang.String ENABLED_PROPERTY
public KafkaStreamsHealth(KafkaStreamsFactory kafkaStreamsFactory, io.micronaut.management.health.aggregator.HealthAggregator<?> healthAggregator)
kafkaStreamsFactory - The stream factory to get streams fromhealthAggregator - Health aggregatorpublic org.reactivestreams.Publisher<io.micronaut.management.health.indicator.HealthResult> getResult()
getResult in interface io.micronaut.management.health.indicator.HealthIndicator