Class KafkaBinderHealthIndicator
java.lang.Object
org.springframework.boot.health.contributor.AbstractHealthIndicator
org.springframework.cloud.stream.binder.kafka.common.AbstractKafkaBinderHealthIndicator
org.springframework.cloud.stream.binder.kafka.KafkaBinderHealthIndicator
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean,org.springframework.boot.health.contributor.HealthContributor,org.springframework.boot.health.contributor.HealthIndicator
public class KafkaBinderHealthIndicator
extends org.springframework.cloud.stream.binder.kafka.common.AbstractKafkaBinderHealthIndicator
Health indicator for Kafka.
- Author:
- Ilayaperumal Gopinathan, Marius Bogoevici, Henryk Konsek, Gary Russell, Laur Aliste, Soby Chacko, Vladislav Fefelov, Chukwubuikem Ume-Ugwa, Taras Danylchuk
-
Field Summary
Fields inherited from class org.springframework.cloud.stream.binder.kafka.common.AbstractKafkaBinderHealthIndicator
considerDownWhenAnyPartitionHasNoLeader, metadataConsumer, timeout -
Constructor Summary
ConstructorsConstructorDescriptionKafkaBinderHealthIndicator(KafkaMessageChannelBinder binder, org.springframework.kafka.core.ConsumerFactory<?, ?> consumerFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.boot.health.contributor.Healthprotected ExecutorServiceMethods inherited from class org.springframework.cloud.stream.binder.kafka.common.AbstractKafkaBinderHealthIndicator
destroy, doHealthCheck, safelyBuildTopicsHealth, setConsiderDownWhenAnyPartitionHasNoLeader, setTimeoutMethods inherited from class org.springframework.boot.health.contributor.AbstractHealthIndicator
healthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.health.contributor.HealthIndicator
health
-
Constructor Details
-
KafkaBinderHealthIndicator
public KafkaBinderHealthIndicator(KafkaMessageChannelBinder binder, org.springframework.kafka.core.ConsumerFactory<?, ?> consumerFactory)
-
-
Method Details
-
createHealthBinderExecutorService
- Specified by:
createHealthBinderExecutorServicein classorg.springframework.cloud.stream.binder.kafka.common.AbstractKafkaBinderHealthIndicator
-
getTopicsInUse
protected Map<String,org.springframework.cloud.stream.binder.kafka.common.TopicInformation> getTopicsInUse()- Specified by:
getTopicsInUsein classorg.springframework.cloud.stream.binder.kafka.common.AbstractKafkaBinderHealthIndicator
-
buildBinderSpecificHealthDetails
protected org.springframework.boot.health.contributor.Health buildBinderSpecificHealthDetails()- Specified by:
buildBinderSpecificHealthDetailsin classorg.springframework.cloud.stream.binder.kafka.common.AbstractKafkaBinderHealthIndicator
-